Weird characters are shown instead of accented letters

[ad_1]

Hi @wookiemorrowindova,

Not really sure what’s going on. I tried changing my test site to Czech language and characters are rendering normally here.

Please try this:

  1. Go to Pluginy > Editor souboru pluginu.
  2. Select WordPress Popular Posts using the dropdown at the top right of your screen.
  3. Click on src > Output.php to edit this file.
  4. Find $dom->loadHTML($html); (it should be around line 166) and change it to $dom->loadHTML(mb_convert_encoding($html 'HTML-ENTITIES', 'UTF-8'));
  5. Click on the “Aktualizovat soubor” button below to save changes.

Thank you very much Hector 🙂 . It works.

But the code was missing a comma after the $html. (ChatGPT figured it out.)

$dom->loadHTML(mb_convert_encoding($html, ‘HTML-ENTITIES’, ‘UTF-8’));

Thank you for your plugin. 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer