Fix for “Warning: cannot yet handle MBCS in html_entity_decode()! error” in WP-Postviews

WordPress Logo
I installed the WP-Postview plugin for WordPress. Everything was fine until it encountered Japanese. Then it barfed repeatedly with “Warning: Cannot yet handle MBCS in html_entity_decode()!”.

To work around this problem, I found some great notes on SearchMarked.com.

Edit the wp-postviews.php file, replacing

$text = html_entity_decode($text, ENT_QUOTES, get_option('blog_charset'));

with

$text = utf8_decode($text);
This entry was posted in SysAdmin and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">