Warning: cannot yet handle MBCS in html_entity_decode()! 的解决办法
星期天, 十月 26, 2008 21:22 分类: 网络技术

 WordPress刚装好,首页就出现了下面:

Warning: cannot yet handle MBCS in html_entity_decode()! in /wp-content/plugins/wp-postviews/wp-postviews.php on line 260

这个错误,搞了半天也没找出是什么原因.

后来上百度一搜索,就知道了

原来是WP-Postviews插件调用Most Viewed这个Widgets,首页就会出现很多行上面的错误,但是解决的办法也有:

打开wp-postviews.php文件,找到下面这段代码

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

将上面这段代码修改为下面这段代码:

$text = utf8_decode($text);

然后保存就OK了…呵呵..好了

56 views

发表评论

登录 后留言.