Support » Plugin: (PressGraph) Facebook Like » [Plugin: Facebook Like Button] og:description not correctly encoded

  • Greetings,

    I see you changed the fun.inc.php, line 65 to now use the @htmlentities function, but that is not enough since you should specify the charset encoding!

    My blog uses UTF-8, so Facebook gets all messy with the description on the default ISO encoding…

    I changed the full line to:

    <meta property="og:description" content="'.@htmlentities(@trim(substr(strip_tags($post_by_id['post_content']), 0, 140)), ENT_COMPAT | ENT_HTML401, "UTF-8").'"/>

    I fixed the “UTF-8” string there, but I’m sure there is some global constante in wordpress with the correct value…

    http://wordpress.org/extend/plugins/facebook-like-button/

  • The topic ‘[Plugin: Facebook Like Button] og:description not correctly encoded’ is closed to new replies.