WordPress.org

Ready to get started?Download WordPress

Forums

Postie
Swedish (19 posts)

  1. sm3yfx
    Member
    Posted 1 year ago #

    Is the problem with the swedish char fixed now ?

    i write before over the swedish "åäö" it only doing a cutof of word and sometimes linefeed.

    Regards Lars-Gunnar

    http://wordpress.org/extend/plugins/postie/

  2. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    As far as I know all charset issues have been resolved.

  3. sm3yfx
    Member
    Posted 1 year ago #

    No still not working, i have same text in both header and message text and in header its ok but in message its cutoff, check self always use latest postie http://nyheter.4an.eu/?tag=larm

    Regards Lars-Gunnar

  4. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    Please send a sample message to postie-test@devzing.com and I will see what is going on.

  5. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the samples. There was a bug in Postie that may have been affecting you, but was not related to charsets. Your email titles were triggering the category logic and there was a false positive detected. This will be fixed in 1.4.37.

    I did not have any issues with characters like "åäö"

    What version of PHP are you using?

  6. sm3yfx
    Member
    Posted 1 year ago #

    Ok, i run

    PHP Version 5.4.7
    Fastcgi/nginx

    Tnx Lars-Gunnar

  7. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    1.4.37 has been released

  8. sm3yfx
    Member
    Posted 1 year ago #

    Hello there again i still the header is ok but the message is cutoff with the swe char, i have the latest.38 installed. du you whant i forward som day to you and you can debug ?

    Regards Lars-Gunnar

  9. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    I think the next step is for me to look at your system directly. Please send a note to postie-help@devzing.com if you'd like to do this.

  10. Teet Koitjärv
    Member
    Posted 9 months ago #

    Problem still actual.

    Everything works fine for me, except that everything in the body gets deleted after first non-English letter (i.e. ÄÖÜÕ).

  11. Wayne Allen
    Member
    Plugin Author

    Posted 9 months ago #

    What version of Postie are you using?

  12. Teet Koitjärv
    Member
    Posted 9 months ago #

    Version 1.5.16

  13. Wayne Allen
    Member
    Plugin Author

    Posted 9 months ago #

    Can you send a sample message to postie-test@devzing.com
    If at all possible use the same process you are using for your WP install. I.e. please don't forward messages as that tends to significantly change the internal structure of the email.

  14. ap.koponen
    Member
    Posted 8 months ago #

    I can confirm this bug also, Finnish characters ÄÖÅ cut the message, or they are interpreted in a wrong manner (Ä > Ā or something). Reminds me of problems when opening ISO-8859-1 encoded files with UTF-8 editor.

    However, I did not have this problem before I updated couple of days ago from an older version, just can't remember what is was. I have a backup for the database, where can I find the older version number?

  15. ap.koponen
    Member
    Posted 8 months ago #

    I managed to solve this!

    The problem is with postie-functions.php line 1090
    $meta_return .= htmlentities($part->body);

    Which should be
    $meta_return .= htmlentities($part->body, ENT_QUOTES, "UTF-8");

    Because default encoding parameter for htmlentities was changed to UTF-8 in PHP 5.4.0 so it fails with older versions (if I'm right it does an UTF-8 to ISO-8859-1 conversion here, which causes the problems).

  16. Teet Koitjärv
    Member
    Posted 8 months ago #

    I am starting to test.

  17. Wayne Allen
    Member
    Plugin Author

    Posted 8 months ago #

    Thank you for the fix. I will include this in the next release.

  18. Teet Koitjärv
    Member
    Posted 8 months ago #

    Sorry, but no changes. Bug is alive.

  19. tamojjen
    Member
    Posted 8 months ago #

    I too had problem with the Swedish characters, but just using them in captions, not in content nor in title. This was because the content was, when checked for captions, coded as html-characters and a Swedish letter "å" was translated to å (as an example) why postie thought that the caption ended after & and Before 229;.

    Example:

    #img1 caption='123456789å1213'# would be converted to a caption "12345678" since the string was converted to "123456789å1213". About the rest of the caption ("229;1213") will end up in a new paragraph below image...

    I then tried to change the image_place_holder to <img%> instead, but the caption-function was not that kind... hardcoded "#"...

    So, I Went back with #img%# as a Place holder and changed in postie-functions:

    row 2361: if (preg_match("/$img_placeholder_temp caption=(['\"].*?['\"]</strong`>)#/i", $content, $matches)) {

    to match the actual start and end of the caption text.
    
    Also, I found that there was a nother issue a few rows down:
    
    Row 2375:
    $imageTemplate = mb_str_replace('{CAPTION}', $caption, $imageTemplate);
    `where $caption previously was translated (again) to html-chars, making å translated to å and an excpected å was å instead...

    I have tried this on UTF-8 website from an Android phone with Kaiten email and in Windows with Outlook 2013. WP 3.8 and Postie 1.5.17.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags