WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] UTF-8 and meta description (13 posts)

  1. mayeran
    Member
    Posted 1 year ago #

    I have a problem with displaying non-english charcters in meta description. When plugin makes and excerpt from post content it looks like this:

    Emulsja nawil?aj?ca Intensywnie nawil?aj?ca emulsja dla cery dojrza?ej, uzupe?niaj?ca ilo?? wody w komórkach skóry i ...

    I think it may be a problem with utf-8, but I thought that It was fixed in previous releases. Meta description is displayed properly, when I write it by myself. But when plugin makes an excerpt it looks like above.

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

  2. titanas
    Member
    Posted 1 year ago #

    You need to do a bit of hacking to one file. Are you familiar with editing PHP files?

  3. mayeran
    Member
    Posted 1 year ago #

    It turns out that installing the newest developer release seems to be good solution to the problem. I didn't notice that before. I'm gonna wait and see the effects in search results.

    Thank you for your response, titans.

  4. titanas
    Member
    Posted 1 year ago #

    You are welcome. If you can mark this topic as resolved it would be great

  5. xconomy
    Member
    Posted 1 year ago #

    Titanas,

    I also updated to the latest dev build and it did not solve the issue with the bad characters in the description field.

    Oddly enough, the Open Graph Title meta tag has the correctly encoded characters.

    Downloaded and installed from: http://wordpress.org/extend/plugins/wordpress-seo/developers/

    Cheers

  6. Ali Valizadeh
    Member
    Posted 1 year ago #

    i Have this problem too
    i send email to Yoast but did not answer.
    The discription in my site show :

    Description of these are displayed on my site :
    ????????????????????????????

    And that's too bad

  7. titanas
    Member
    Posted 1 year ago #

    xconomy + Ali, if you feel OK with editing a PHP file there is a solution to that. Are you sure/?

    I'm sure Yoast will fix that in he next stable version.

  8. xconomy
    Member
    Posted 1 year ago #

    Yes, titanas, I'm comfortable with PHP, please point me in the right direction.

    Thanks.

  9. Ali Valizadeh
    Member
    Posted 1 year ago #

    Now that is not right. and its very very bad for me and other site

  10. Aminul Islam
    Member
    Posted 1 year ago #

    I have this problem too.

    this descriptions showing in my site.

    <meta name="description" content="?????? ?????????? ???????? ??? ???? ???????? ???? ????? ???? ???? ???????? ??????? ??????? ? (Windows 8) ????????? ???????? ??? ????? ??????? ? ???????????">

    <meta property="og:description" content="?????? ?????????? ???????? ??? ???? ???????? ???? ????? ???? ???? ???????? ??????? ??????? ????????? ???????? ??? ????? ??????? ? ???????????">

    Please Help Me

  11. titanas
    Member
    Posted 1 year ago #

    Guys,

    First backup wpseo-functions.php

    Open the file, fine the if statement

    if ( isset( $r->ID ) ) {
    		$replacements = array_merge( $replacements, array(

    Around line 165 there should be %%excerpt%% =>

    replace that and everything following with this

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

  12. Aminul Islam
    Member
    Posted 1 year ago #

    Owao! Its work for me!

    Thanks a lot!

  13. codeby
    Member
    Posted 1 year ago #

    Developers didnt heard us (((

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic