About this topic

  • Posted by Chow 1 year ago. There are 12 posts. The latest reply is from Chow.

Tags

  1. Rob,

    Needing to apply Chinese emails on your great plugin. I managed to fix the body by adding:

    case "big5":
    $body = iconv("BIG5","UTF-8",$body);
    break;
    case "gb2312":
    $body = iconv("GB2312","UTF-8",$body);
    break;

    But I am unable to fix the email subject line. I found your line for:

    //This is for ISO-2022-JP

    I have no idea how to do a similar thing for Big5 and GB2312. Can you please fix it for people like me?

    Thanks.

  2. Chow,

    That fix should work for subjects too, as the subject calls the HandleMessageEncoding function, which is where those cases go. Please try out the development version.

  3. Thanks Rob for updating the file to v234930. Checked but it is still not fixing the subject line.

    Does it need to be changing the:

    function ConvertToUTF_8($encoding,$charset,$body) {

    to something.

    Then adding a line after the:

    $body = iconv("BIG5","UTF-8",$body);

    to

    $body = iconv("BIG5","UTF-8",$body);
    $subject = iconv("BIG5","UTF-8",$subject);

    Or, do we amend the line from:

    function HandleMessageEncoding($encoding, $charset,$body,
    $blogEncoding='utf-8', $dequote=true)

    to something?

  4. Chow,

    Could you send me a test message to robfelty at the gmail? - actually, two - one in big5, and one in gb2312

  5. Rob, emails forwarded from my gmail account. Thanks for the caring :]

  6. got em. I will try to take a look at them in the next couple days

  7. Rob, any update? I have a project pending on your magic fix. Chow

  8. Sorry for the delay. I finally got a chance to test them out, and they work fine for me. See:
    http://robfelty.com/wptesting/?p=10232

    The subject line currently depends on the imap php extension. Please download the development version, and run the "test config" to see if you have it installed.

    Rob

  9. Hi Rob,

    'm back on the project now : )

    http://robfelty.com/wptesting/?p=10232 looks good.

    Can't get your latest development version. This link http://wordpress.org/extend/plugins/postie/download gives only v234895 2010-04-28, the last one I tried was v2349xx. I guess you should have a newer one around mid of May?

  10. Rob,

    Running your latest version (still marked v234895 2010-04-28 but zip file said packaged on May 10).

    Ran "test config" and confirmed all yes including international support:

    iconv yes
    imap (required for subjects) yes

    Just the subject line is still not working so on your test site:

    Subject: ã??ç?«å?ºå¿?ä¸ æ??ã??8æ??6æ?¥é??課ï¼?

    What to do now?

  11. What encoding are you using for your site? I would recommend utf-8.

  12. Of course my site is using utf-8... or else we won't want Postie helping us to convert all incoming emails to u8...

    I list a couple of Chinese newsletter subscription pages in below, from them you will be able to get a continue supply of Chinese emails going into your inbox. I hope you will thus get more resources to fix this conversion issue.

    In Big5 code: hxxp://jointpublishing.com/readerser/default.asp
    In GB code: http://www.sscac.com.cn/EMagzine.aspx?ModuleID=M0014

    Thanks.

RSS feed for this topic

Have you read the FAQ?
Have you tried the latest development version (at the bottom)?

Reply

You must log in to post.