[Plugin: Parteibuch Aggregator] Fixes for UTF-8 HTML entities/specialchars,
-
Anyone suffering strange characters and spurious/double
&
encoding of UTF-8 HTML entities such as'
, etc, etc bespeckling their output, heres the fix that worked for me::file: bdp-rssaggregator-db.php, function updateItem, around line 1055:
after:global $wpdb, $bdprss_search;
add something like the line:
(function_exists('get_option') && ($scl_charset = get_option( 'blog_charset' ))) || ($scl_charset = 'UTF-8');
then, around line 1093 in the sql update statement, change:
"$this->iitemname='".mysql_real_escape_string(htmlentities($title))."', ".
to:
"$this->iitemname='".mysql_real_escape_string(htmlentities($title,ENT_COMPAT,$scl_charset,FALSE))."', ".
and later in the same func, in the sql insert statement around line 122 ish, change:
'".mysql_real_escape_string($title)."',
to:'".mysql_real_escape_string(htmlentities($title,ENT_COMPAT,$scl_charset,FALSE))."',
that’s it, no more garbling.
- The topic ‘[Plugin: Parteibuch Aggregator] Fixes for UTF-8 HTML entities/specialchars,’ is closed to new replies.