Support » Plugin: Auto Featured Image (Auto Post Thumbnail) » Not working with Cyrillic titles

  • Resolved bibliata

    (@bibliata)


    What OS, apache or php GD library modules need to be installed in order to work with Cyrillic titles? Latin titles work fine. Cyrillic titles generate ???????? or ☐☐☐☐☐ in the thumbs //THANKS

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter bibliata

    (@bibliata)

    I tried updating with different fonts but still the same.
    What free font do you recommend for Cyrillic titles?

    • This reply was modified 11 months, 3 weeks ago by bibliata.
    Plugin Author Artem

    (@webtemyk)

    Здравствуйте.

    Можно по-русски?

    Скорее всего проблема в кодировке сайта.

    Thread Starter bibliata

    (@bibliata)

    Sure, Russian is fine!
    The website is straight WP installation with standard UTF-8 encoding database. Cyrillic titles and posts work with no problem, but the thumb does not generate with readable encoding:

    Post with Latin title
    http://ipresent.org/wp-content/uploads/2020/11/wapt_image_400-1.png

    Post with Cyrillic title
    https://ipresent.org/wp-content/uploads/2020/11/wapt_image_409-1.png

    //THANKS

    Plugin Author Artem

    (@webtemyk)

    I thought you would answer in Russian.

    Your site doesn’t open. I checked, the plugin works fine with Cyrillic. Use the standard font from the plugin.

    Thread Starter bibliata

    (@bibliata)

    IF anyone has the same problem in the future, it has to do with PHP 7.4 still working on finalizing their iconv glitches. Use mb_convert_encoding instead to convert HTML-ENTITIES into true UTF-8 //THANKS

    $auto_image_post_title = mb_convert_encoding(get_the_title($post->ID), ‘HTML-ENTITIES’, ‘UTF-8’);

    $auto_image_post_title = preg_replace(‘~^(&([a-zA-Z0-9]);)~’,htmlentities(‘${1}’),$auto_image_post_title);

    Plugin Author Artem

    (@webtemyk)

    Thanks. We will test this code and include it in the plugin.

    I`m facing the exactly same problem described and solved by @bibliata (PHP 7.4 related encoding issues)

    How can I apply the suggested code to fix some latin special characters not being printed correctly?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not working with Cyrillic titles’ is closed to new replies.