This error “Cannot yet handle MBCS in html_entity_decode()……” happens when you are using php4, WP-PostRatings Plugin version 1.31 and less, and you are using “UTF-8″ for your “Content-Type” Meta Tag in your WordPress Blog. It happens to one of my gaming site, GamesFreez.com and I have corrected it using the following solution:
1. Open WP-PostRatings.php
2. Find
$text = html_entity_decode($text, ENT_QUOTES, get_option(’blog_charset’));
3. Replace with
if(( version_compare( phpversion(), ‘5.0′ ) < 0 ) && (strtolower(get_option(’blog_charset’)) == ‘utf-8′)) {
$trans_tbl = get_html_translation_table (HTML_ENTITIES);
$trans_tbl = array_flip ($trans_tbl);
$text = strtr ($source, $trans_tbl);
$text = utf8_encode($text);
}else{
// url decode (phpversion =< 5.0 or get_option(’blog_charset’)!= utf-8 )
$text = @html_entity_decode($text, ENT_QUOTES, get_option(’blog_charset’));
}
I have also posted at Lester Chan’s Forum, so hopefully I do not have to face the same problem again when he released the new version of WP-PostRatings Plugin
Update: WP-PostRatings 1.31 Plugin confirmed has the above problem. Try the above solution.
Popularity: 3% [?]