<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Warning: cannot yet handle MBCS in html_entity_decode</title>
	<atom:link href="http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/feed/" rel="self" type="application/rss+xml" />
	<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/</link>
	<description>Lester Chan's WordPress Plugins Development Blog</description>
	<pubDate>Sat, 10 Jan 2009 01:57:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dagdu</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-22406</link>
		<dc:creator>Dagdu</dc:creator>
		<pubDate>Tue, 02 Dec 2008 16:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-22406</guid>
		<description>Compliments to  Guilherme Silva, PMP as well!</description>
		<content:encoded><![CDATA[<p>Compliments to  Guilherme Silva, PMP as well!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dagdu</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-22405</link>
		<dc:creator>Dagdu</dc:creator>
		<pubDate>Tue, 02 Dec 2008 16:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-22405</guid>
		<description>Housed, You are a GENIUS Sir!</description>
		<content:encoded><![CDATA[<p>Housed, You are a GENIUS Sir!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sameer Dhoot</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-21731</link>
		<dc:creator>Sameer Dhoot</dc:creator>
		<pubDate>Thu, 13 Nov 2008 18:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-21731</guid>
		<description>Thanks for sharing the solution Guilherme =)

Sameer Dhoot
http://intellects.in</description>
		<content:encoded><![CDATA[<p>Thanks for sharing the solution Guilherme =)</p>
<p>Sameer Dhoot<br />
<a href="http://intellects.in" rel="nofollow">http://intellects.in</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Choccybox</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-21568</link>
		<dc:creator>Choccybox</dc:creator>
		<pubDate>Wed, 05 Nov 2008 14:19:01 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-21568</guid>
		<description>Thanks a lot, Housed.  That fixed it the post views plugin on our site, much appreciated.

Just need to get our host to upgrade to PHP5 now.</description>
		<content:encoded><![CDATA[<p>Thanks a lot, Housed.  That fixed it the post views plugin on our site, much appreciated.</p>
<p>Just need to get our host to upgrade to PHP5 now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Housed</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-20752</link>
		<dc:creator>Housed</dc:creator>
		<pubDate>Fri, 04 Jul 2008 21:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-20752</guid>
		<description>Hi all,

My solution is quiet the same.

-Look for the following line:

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

-Replace the line with the following:

$text = utf8_decode($text);

Regards,
Björn</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>My solution is quiet the same.</p>
<p>-Look for the following line:</p>
<p>$text = html_entity_decode($text, ENT_QUOTES, get_option(&#8217;blog_charset&#8217;));</p>
<p>-Replace the line with the following:</p>
<p>$text = utf8_decode($text);</p>
<p>Regards,<br />
Björn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Levien</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-20684</link>
		<dc:creator>Levien</dc:creator>
		<pubDate>Mon, 30 Jun 2008 07:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-20684</guid>
		<description>If you are running on a Godaddy server:

What was the problem?

The problem was that GoDaddy runs php version 4 and version 5 concurrently with the Linux hosting configuration 2.0 . Facebook applications only run on php version 5. When checking the version of php, the script      indicates that GoDaddy is running php version 4.3.

How to fix this?

Well, there are a lot of proposed fixes out there. Difficult to find and GoDaddy documentation and customer service is unclear and muddled. The simple fix, include a .htaccess file in the root directory with the following line below:

AddHandler x-httpd-php5 .php</description>
		<content:encoded><![CDATA[<p>If you are running on a Godaddy server:</p>
<p>What was the problem?</p>
<p>The problem was that GoDaddy runs php version 4 and version 5 concurrently with the Linux hosting configuration 2.0 . Facebook applications only run on php version 5. When checking the version of php, the script      indicates that GoDaddy is running php version 4.3.</p>
<p>How to fix this?</p>
<p>Well, there are a lot of proposed fixes out there. Difficult to find and GoDaddy documentation and customer service is unclear and muddled. The simple fix, include a .htaccess file in the root directory with the following line below:</p>
<p>AddHandler x-httpd-php5 .php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-20658</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Sun, 29 Jun 2008 03:53:49 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-20658</guid>
		<description>PHP4 makes life difficult for a lot of people. ;)  I just gave my current blog hosting a "warning", if no action I'll move them over to my hosting with the rest of my PHP5 sites.

ps - if I may be so bold, you may want to add a warning in your docs about that requirement.  I googled for the error and found hundreds of sites.</description>
		<content:encoded><![CDATA[<p>PHP4 makes life difficult for a lot of people. <img src='http://lesterchan.net/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I just gave my current blog hosting a &#8220;warning&#8221;, if no action I&#8217;ll move them over to my hosting with the rest of my PHP5 sites.</p>
<p>ps - if I may be so bold, you may want to add a warning in your docs about that requirement.  I googled for the error and found hundreds of sites.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GaMerZ</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-20657</link>
		<dc:creator>GaMerZ</dc:creator>
		<pubDate>Sun, 29 Jun 2008 02:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-20657</guid>
		<description>@dave: After I roll out the plugin then I realize that it is not working for PHP4 as I always develop in PHP5. PHP4 just makes life difficult for me to develop at times.</description>
		<content:encoded><![CDATA[<p>@dave: After I roll out the plugin then I realize that it is not working for PHP4 as I always develop in PHP5. PHP4 just makes life difficult for me to develop at times.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-20652</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Sat, 28 Jun 2008 23:18:38 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-20652</guid>
		<description>I'm curious, I totally missed where in the documentation that it requires php5.  My site broke, and my hosting doesn't provide php 5, and I can't roll back to 1.2 for some reason, need to check a few other things.  I think LC has probably the best widgets out there, and quite likely the best documented as well, so I'll not gripe too loudly.

I'll admit maybe I missed something, but to say "just upgrade to php 5" is a little out of touch with reality and a bit junior. I'm a huge advocate of php 5 and it powers most of the sites i run professionally, but php5 adoption is still lagging behind.</description>
		<content:encoded><![CDATA[<p>I&#8217;m curious, I totally missed where in the documentation that it requires php5.  My site broke, and my hosting doesn&#8217;t provide php 5, and I can&#8217;t roll back to 1.2 for some reason, need to check a few other things.  I think LC has probably the best widgets out there, and quite likely the best documented as well, so I&#8217;ll not gripe too loudly.</p>
<p>I&#8217;ll admit maybe I missed something, but to say &#8220;just upgrade to php 5&#8243; is a little out of touch with reality and a bit junior. I&#8217;m a huge advocate of php 5 and it powers most of the sites i run professionally, but php5 adoption is still lagging behind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GaMerZ</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-20582</link>
		<dc:creator>GaMerZ</dc:creator>
		<pubDate>Tue, 24 Jun 2008 06:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-20582</guid>
		<description>Thanks for sharing the solution Guilherme =)</description>
		<content:encoded><![CDATA[<p>Thanks for sharing the solution Guilherme =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guilherme Silva, PMP</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-20581</link>
		<dc:creator>Guilherme Silva, PMP</dc:creator>
		<pubDate>Tue, 24 Jun 2008 01:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-20581</guid>
		<description>A workaround for this error is using utf8_decode($text) instead of using the default html_entity_decode() used in the plugins. 

   This would work fine only if your blog is utf8 encoded, but the error only hapens (as i could see from the php bug page) when you try to decode utf8 text, and it is default to Wordpress anyway.

eg: for the post rating plugin, replace the line 573 from wp-postratings.php from:


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

to:

$text = utf8_decode($text);

Of course, you should check if the blog really is utf8 before doing so.


Best Regards,
Guilherme Silva, PMP
www.gerenciamentoeconomico.com.br</description>
		<content:encoded><![CDATA[<p>A workaround for this error is using utf8_decode($text) instead of using the default html_entity_decode() used in the plugins. </p>
<p>   This would work fine only if your blog is utf8 encoded, but the error only hapens (as i could see from the php bug page) when you try to decode utf8 text, and it is default to Wordpress anyway.</p>
<p>eg: for the post rating plugin, replace the line 573 from wp-postratings.php from:</p>
<p>$text=html_entity_decode($text,ENT_QUOTES,get_option(&#8217;blog_charset&#8217;));</p>
<p>to:</p>
<p>$text = utf8_decode($text);</p>
<p>Of course, you should check if the blog really is utf8 before doing so.</p>
<p>Best Regards,<br />
Guilherme Silva, PMP<br />
<a href="http://www.gerenciamentoeconomico.com.br" rel="nofollow">http://www.gerenciamentoeconomico.com.br</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GaMerZ</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-20476</link>
		<dc:creator>GaMerZ</dc:creator>
		<pubDate>Mon, 09 Jun 2008 05:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-20476</guid>
		<description>Mr Papa: Currently a few of my plugins can be used only on PHP 5 =D. Thanks for the support and voicing out =D</description>
		<content:encoded><![CDATA[<p>Mr Papa: Currently a few of my plugins can be used only on PHP 5 =D. Thanks for the support and voicing out =D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr Papa</title>
		<link>http://lesterchan.net/wordpress/2008/06/09/warning-cannot-yet-handle-mbcs-in-html_entity_decode/comment-page-1/#comment-20470</link>
		<dc:creator>Mr Papa</dc:creator>
		<pubDate>Sun, 08 Jun 2008 22:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://lesterchan.net/wordpress/?p=170#comment-20470</guid>
		<description>Just change and make your plugins php5 only...  the more folks do that, the pressure that can be brought to bear on these hosts running ancient software...  we need to get php4 sunsetted... sorry, just my 2 cents...</description>
		<content:encoded><![CDATA[<p>Just change and make your plugins php5 only&#8230;  the more folks do that, the pressure that can be brought to bear on these hosts running ancient software&#8230;  we need to get php4 sunsetted&#8230; sorry, just my 2 cents&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
