{"id":18167497,"date":"2024-11-28T15:48:13","date_gmt":"2024-11-28T15:48:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/native-utf-8\/"},"modified":"2024-11-28T15:48:13","modified_gmt":"2024-11-28T15:48:13","slug":"native-utf-8","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/native-utf-8\/","title":{"rendered":"Native UTF-8"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Please consider updating the plugin using mb_convert_encoding instead of html_entity_decode to support native UTF-8 for Cyrillic and other fonts. It&#8217;s just a 2-line change:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$auto_image_post_title = mb_convert_encoding(get_the_title($post-&gt;ID), &#8216;HTML-ENTITIES&#8217;, &#8216;UTF-8&#8217;);<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$auto_image_post_title = preg_replace(&#8216;~^(&amp;([a-zA-Z0-9]);)~&#8217;,htmlentities(&#8216;${1}&#8217;),$auto_image_post_title);<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/\/THANKS<\/p>\n","protected":false},"template":"","class_list":["post-18167497","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18167497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18167497\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18167497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}