WordPress.org

Support

Support » Plugins and Hacks » Yoast SEO » [Resolved] [Plugin: WordPress SEO by Yoast] %%excerpt%% doesn't display multibyte characters

[Resolved] [Plugin: WordPress SEO by Yoast] %%excerpt%% doesn't display multibyte characters

  • WordPress version: 3.4.1
    WordPress SEO version: 1.2.7

    I did this:
    I setup the plugin to add meta description based on excerpt.

    I expected the plugin to do this:
    Display excerpt properly no matter what language is used. But it just displays question marks and only support English.

    Instead it did this:
    ??????8?5??????????2??9?2????NPO????????????????????????????????????????????? ????NPO??????????NPO??????????????????????????????NHK??????????4????????N

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 5 replies - 1 through 5 (of 5 total)
  • You’ll have to remove remove utf8_decode() and utf8_encode() from
    /inc/wpseo-functions.php line 156

    '%%excerpt%%' => ( !empty( $r->post_excerpt ) ) ? strip_tags( $r->post_excerpt ) : substr( strip_shortcodes( strip_tags( $r->post_content ) ), 0, 155 ),

    Thanks akis, it worked. I hope the author fixes the bug.

    Same probleme !

    Thanks for the fix it works 😉

    Hope the next version will fix that.

    The 1.2.8.1 don’t fix this bug.
    I have to re-fix it.

    Hope the next version will patch that.

    i made this and it worked perfectly for me

    ‘%%excerpt%%’=> substr($r->post_content,0,300),

    i replaced the 155 to 300 as the language i’m using in my website
    http://www.dallilak.com is a multibyte language so to keep the output nearly the same.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: WordPress SEO by Yoast] %%excerpt%% doesn't display multibyte characters’ is closed to new replies.
Skip to toolbar