Support » Plugin: Email Users » Chinese character encoding problem on iOS device.

  • Hi mike

    Thank you very much for the wonderful plugin. But I ran into a little problem while using the version 4.6.9.
    My posts contains lots of Chinese characters(UTF8 encoded I suppose), I am trying to notify users by Email Users. And here’s the problem: all the Chinese characters in the mail became gibberish when received by an iOS device..
    That’s pretty strange to me, I mean, the mail looks perfect on PC and Mac, but when it comes to iPhone and iPad it just won’t display properly.
    By the way, I use a gmail account to receive the mail.
    Can you help me out?

    Best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter shao.dut


    Oh another strange thing, small posts is OK, but long posts not OK

    Thread Starter shao.dut


    $subject = "=?UTF-8?B?".base64_encode($subject)."?=";
    $headers = 'MIME-Version: 1.0' . "\n";
    $headers .= 'Content-type: text/html; charset=utf8' . "\r\n";
    $headers .= "Content-Transfer-Encoding: base64";
    $mailtext = base64_encode($mailtext);

    Hi Mike. I added these code in email-users.php line 1466. It works fine.

    May be you can add a function to let users choose transfer encoding in future versions, put raw html into email body can bring lots of problems.

    Plugin Author Mike Walsh


    I cannot get this to work. When I base64 encode an email, it never goes through so I am assuming I am not composing it correctly.

    I can’t implement exactly what you show above because I build the headers in an array as opposed to as a long string which has proven to be problematic on a number of hosting environments and I also need to ensure that what I implement supports the other options (e.g. BCC limits).

    I have a beta build posted on my site which has a new option on the Settings page to enable Base64 Encoding – can you try it in your environment and see if it works OR better year, take a look at the code as I requested in the post and see if you can see what I am doing wrong.

    Plugin Author Mike Walsh


    I have disabled this feature in v4.6.10 which is out due to lack of feedback on the proposed solution. I’ll revisit it in a later release.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Chinese character encoding problem on iOS device.’ is closed to new replies.