WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
Non-ascii characters not working in autopublish (5 posts)

  1. janilxx
    Member
    Posted 3 years ago #

    I updated SFC and now non-ascii characters (like ö, ä and å) don't work anymore in Facebook.

    For example 'ä' letter is changed to "ä" in my facebook fan page.

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 3 years ago #

    Open SFC-Publish.php and find this line (166):
    $text = html_entity_decode($text, ENT_QUOTES, 'UTF-8');

    Try removing the ‘UTF-8′ from the end, so it looks like this:
    $text = html_entity_decode($text, ENT_QUOTES);

    See if that makes any difference.

  3. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 3 years ago #

    Also try changing line 179 from this:
    return utf8_encode($text);

    to this:
    return $text;

    If that works, I'll put it in the next release.

  4. janilxx
    Member
    Posted 3 years ago #

    I can also confirm that everything works perfectly after I made these two changes (lines 166 and 179)

  5. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 3 years ago #

    Turns out that line 179 is the only change required.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic