I have installed a fresh new test-WordPress and if I query a SQL like this:
select * from wp_posts
I only get the first “Wellcome”-Post from the german WP-Instaltion. The Umlauts are all broken and the Post is end with the first “-” in the Post.
I have try to find out where the code goes broken… And I found this:
$dval = htmlentities($dval);
in “DBViewTable.class.php” at line 153.
If I set the Calls-Attribut: public $encodeHtmlEntities = false
all seams to by fine.
So I take a look at the PHP-Doc and found this:
“If omitted, the default value for this argument is ISO-8859-1 in versions of PHP prior to 5.4.0”
So I set the Calls Attribut back to true and change this:
$dval = htmlentities($dval, ENT_COMPAT, get_option(‘blog_charset’));
Now it’s work fine…. can you take this into account.
- The topic ‘[Plugin: dbview] Charset encoding (encodeHtmlEntities) is broken by using UTF-8’ is closed to new replies.