• Resolved Korni

    (@kornet16)


    Hello,
    I use the latest version of wordpress and also the latest version of that plugin. Before the last update, everything worked fine. But since I updated the plugin, it changed all of my text to weird characters.

    Normally it should look like this:

    As you can see, the ?,?,ü,? etc are shown correctly.

    Since the plugin update it looks like that:

    Did the last update changed the charset or something?

    When I deactivate the plugin, everything is changed back to normal again.
    I hope it’s just a small bug,
    greetings, Korni ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author reikiman

    (@reikiman)

    Hurm.. It works fine on my site, but then my site is all in US English and therefore wouldn’t trigger this problem. The code does run the $content through a processor, so perhaps there’s some encoding like utf8 I have to account for.

    Plugin Author reikiman

    (@reikiman)

    Question — which version of the plugin do you have? 1.5.3? 1.5.4?

    Plugin Author reikiman

    (@reikiman)

    The reason I asked about the plugin version is that in 1.5.4 it switched from

     @$html->loadHTML('<meta http-equiv="content-type" content="text/html; charset=utf-8">' . $content);
    

    To
    @$html->loadHTML($content);

    The first is a bit of a hack to force UTF8 interpretation of the text. I removed it because it seemed on someone’s site to cause insertion of unwanted other tags. But with that META tag it forces correct interpretation of the text, and that loadHTML is well known to mess up text the way you describe it unless it’s explicitly told to use a specific charset like UTF8

    Plugin Author reikiman

    (@reikiman)

    I’m running 1.5.4 on WP 4.8 … I created a page using text copied from the German Wikipedia … and it’s displaying correctly as well as I can determine: https://longtailpipe.com/german-text/

    I made sure to include some of the characters that are in your text, and they seem to make it through just fine.

    Thread Starter Korni

    (@kornet16)

    Hello,
    I’m running Version 1.5.4 on WP Version 4.8(–de_DE).
    Yeah I just checked your site, and the text is correct hmmmm.
    I don’t know what’s different to mine.
    The sidebar, menu etc. is showing correctly on my WP btw.
    It’s really just the content which has that problem.

    Julie Strietelmeier

    (@juliethe-gadgeteercom)

    I’m having the same problem on my site using the latest version of WP and latest version of your plugin. My site is English and the plugin is causing some characters like quotes, spaces and periods to be something else. See screenshot:

    Plugin Author reikiman

    (@reikiman)

    I checked more carefully how to handle this.

    The code now inserts a <meta> tag as it had done previously to declare UTF8 to the DOM library. At the end it takes steps to remove the spurious DOCTYPE/HTML/BODY tags that got inserted.

    Please try version 1.5.4 and let me know how it goes

    Thread Starter Korni

    (@kornet16)

    Hey,
    I installed Version 1.5.5 now and it works fine again!
    So far, I cannot see any bugs.
    The text is shown correctly again.

    Thank you for your help! ??
    Greetings, Korni

    Julie Strietelmeier

    (@juliethe-gadgeteercom)

    Looks good for me too. Thank you for the quick support!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Charset changing since last update?’ is closed to new replies.