Yes, I have the same problem. The filename is badly displayed in the email that the customer gets.
This needs to be fixed ASAP !
Thanks,
Didier.
My solution:
To show inline solution:
Change: public/class-email-before-download-public.php
Line: 108, add utf8 decode to title -> utf8_decode($links[$link->selected_id][‘title’])
To emails links:
Change: includes/class-email-before-download-process.php
Line: 167 add utf8 decode to $link->title = utf8_decode($title);
Super Johan,
I will try this out and let you know !
I didn’t know what encoding to add for WP. The first time I encounter this UTF problem.
Many thanks !
Didier.
Tested..different now but still not good.
My french text : Le copyright – une…
Link in email before UTF8 encoding : le copyright – une…
Link in email after UTF8 patch : le copyright �?? une…
This is the code at line 164 : $link->title = utf8_decode($title);
An idea?
Didier.
I have no ideia! Try another type of encode/decode. Maybe UTF-16 or ISO-8859-1
https://www.lifewire.com/html-codes-french-characters-4062211
The solution still holds. My “-” was not a regular character, so it was messed up (don’t ask me how). Using the utf8_decode, this string
“download test àé-_ [Livre Blanc] Le copyright -”
is correctly displayed on the screen and in the email.
All good for now!
Thanks again for the code patch!
Didier.