Support » Plugin: Email Before Download » Filename characters encoded improperly

  • If the filename includes ' or , for example, then when it is displayed after filling out the form, it shows as \' or ’, respectively.

Viewing 8 replies - 1 through 8 (of 8 total)
  • swissspaceboy


    Yes, I have the same problem. The filename is badly displayed in the email that the customer gets.

    This needs to be fixed ASAP !



    Same here with accents!

    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 !




    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?



    I have no ideia! Try another type of encode/decode. Maybe UTF-16 or ISO-8859-1

    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!


Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Filename characters encoded improperly’ is closed to new replies.