<?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: Perl script to convert MySQL character set to utf8</title>
	<atom:link href="http://www.haidongji.com/2009/02/16/perl-script-to-convert-mysql-character-set-to-utf8/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.haidongji.com/2009/02/16/perl-script-to-convert-mysql-character-set-to-utf8/</link>
	<description>季庄新闻--Haidong Ji's Blog</description>
	<lastBuildDate>Thu, 11 Mar 2010 03:19:24 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Haidong Ji</title>
		<link>http://www.haidongji.com/2009/02/16/perl-script-to-convert-mysql-character-set-to-utf8/comment-page-1/#comment-17806</link>
		<dc:creator>Haidong Ji</dc:creator>
		<pubDate>Mon, 16 Nov 2009 01:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=556#comment-17806</guid>
		<description>Thanks Ипотпал. Glad you liked it. Cheers!</description>
		<content:encoded><![CDATA[<p>Thanks Ипотпал. Glad you liked it. Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ипотпал</title>
		<link>http://www.haidongji.com/2009/02/16/perl-script-to-convert-mysql-character-set-to-utf8/comment-page-1/#comment-17805</link>
		<dc:creator>Ипотпал</dc:creator>
		<pubDate>Sun, 15 Nov 2009 19:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=556#comment-17805</guid>
		<description>this is a chunk of gold</description>
		<content:encoded><![CDATA[<p>this is a chunk of gold</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haidong Ji</title>
		<link>http://www.haidongji.com/2009/02/16/perl-script-to-convert-mysql-character-set-to-utf8/comment-page-1/#comment-17767</link>
		<dc:creator>Haidong Ji</dc:creator>
		<pubDate>Thu, 17 Sep 2009 14:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=556#comment-17767</guid>
		<description>Thanks for pointing that out, knb.</description>
		<content:encoded><![CDATA[<p>Thanks for pointing that out, knb.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: knb</title>
		<link>http://www.haidongji.com/2009/02/16/perl-script-to-convert-mysql-character-set-to-utf8/comment-page-1/#comment-17766</link>
		<dc:creator>knb</dc:creator>
		<pubDate>Thu, 17 Sep 2009 14:13:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=556#comment-17766</guid>
		<description>If there are foreign keys defined on in your table (column values referenced from other tables), conversion won&#039;t work for the referenced column. drop f-keys first, then recreate. can be tricky, though.</description>
		<content:encoded><![CDATA[<p>If there are foreign keys defined on in your table (column values referenced from other tables), conversion won&#8217;t work for the referenced column. drop f-keys first, then recreate. can be tricky, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haidong Ji</title>
		<link>http://www.haidongji.com/2009/02/16/perl-script-to-convert-mysql-character-set-to-utf8/comment-page-1/#comment-17761</link>
		<dc:creator>Haidong Ji</dc:creator>
		<pubDate>Tue, 01 Sep 2009 21:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=556#comment-17761</guid>
		<description>Hi Emre,

Sorry, at this point I don&#039;t have enough time for a proper php code.

You can try the manual approach documented here and see what happens:

http://www.haidongji.com/2008/11/11/convert-character-set-to-utf8-in-mysql/

Hope it helps.</description>
		<content:encoded><![CDATA[<p>Hi Emre,</p>
<p>Sorry, at this point I don&#8217;t have enough time for a proper php code.</p>
<p>You can try the manual approach documented here and see what happens:</p>
<p><a href="http://www.haidongji.com/2008/11/11/convert-character-set-to-utf8-in-mysql/" rel="nofollow">http://www.haidongji.com/2008/11/11/convert-character-set-to-utf8-in-mysql/</a></p>
<p>Hope it helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emre</title>
		<link>http://www.haidongji.com/2009/02/16/perl-script-to-convert-mysql-character-set-to-utf8/comment-page-1/#comment-17760</link>
		<dc:creator>Emre</dc:creator>
		<pubDate>Tue, 01 Sep 2009 09:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=556#comment-17760</guid>
		<description>Hi,

I tried it on my localhost(wamp, perl installed correctly.) but got &quot;500 Internal Server Error&quot;

By the way can you convert it to php, it will be very useful.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I tried it on my localhost(wamp, perl installed correctly.) but got &#8220;500 Internal Server Error&#8221;</p>
<p>By the way can you convert it to php, it will be very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haidong Ji</title>
		<link>http://www.haidongji.com/2009/02/16/perl-script-to-convert-mysql-character-set-to-utf8/comment-page-1/#comment-17733</link>
		<dc:creator>Haidong Ji</dc:creator>
		<pubDate>Mon, 25 May 2009 04:20:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=556#comment-17733</guid>
		<description>Hmmm, not sure about that SL.

I tried it again on my own machine and it worked. Hopefully you&#039;ve fixed this problem. If not, send me the script and I can take a look.</description>
		<content:encoded><![CDATA[<p>Hmmm, not sure about that SL.</p>
<p>I tried it again on my own machine and it worked. Hopefully you&#8217;ve fixed this problem. If not, send me the script and I can take a look.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SL</title>
		<link>http://www.haidongji.com/2009/02/16/perl-script-to-convert-mysql-character-set-to-utf8/comment-page-1/#comment-17732</link>
		<dc:creator>SL</dc:creator>
		<pubDate>Thu, 21 May 2009 20:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=556#comment-17732</guid>
		<description>Hi, I&#039;m getting this in my error log: 

malformed header from script. Bad header=ALTER TABLE wp_comments MODIFY: convert.pl

(convert.pl being the name of the script)

The only other change I made to the script other than changing the database info is that I changed &quot;localhost&quot; to the correct hostname, since I was getting an error on that too.  

Do you know what the new error means?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m getting this in my error log: </p>
<p>malformed header from script. Bad header=ALTER TABLE wp_comments MODIFY: convert.pl</p>
<p>(convert.pl being the name of the script)</p>
<p>The only other change I made to the script other than changing the database info is that I changed &#8220;localhost&#8221; to the correct hostname, since I was getting an error on that too.  </p>
<p>Do you know what the new error means?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haidong Ji</title>
		<link>http://www.haidongji.com/2009/02/16/perl-script-to-convert-mysql-character-set-to-utf8/comment-page-1/#comment-17680</link>
		<dc:creator>Haidong Ji</dc:creator>
		<pubDate>Wed, 18 Mar 2009 03:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=556#comment-17680</guid>
		<description>Hi Bastiaan,

In your case, I doubt it is a matter of corrupt unicode. When the character set is UTF8, MySQL uses 3 bytes to store one character, instead of 1 when the character is Latin1. I suppose that is why the size grown after the conversion?</description>
		<content:encoded><![CDATA[<p>Hi Bastiaan,</p>
<p>In your case, I doubt it is a matter of corrupt unicode. When the character set is UTF8, MySQL uses 3 bytes to store one character, instead of 1 when the character is Latin1. I suppose that is why the size grown after the conversion?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bastiaan</title>
		<link>http://www.haidongji.com/2009/02/16/perl-script-to-convert-mysql-character-set-to-utf8/comment-page-1/#comment-17678</link>
		<dc:creator>Bastiaan</dc:creator>
		<pubDate>Tue, 17 Mar 2009 16:12:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=556#comment-17678</guid>
		<description>ok I did sort of the same but I do get after changing a TEXT field to BLOB than the data was to big?? while the data war almost nothing

any tips where to look? corrupt unicode?</description>
		<content:encoded><![CDATA[<p>ok I did sort of the same but I do get after changing a TEXT field to BLOB than the data was to big?? while the data war almost nothing</p>
<p>any tips where to look? corrupt unicode?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
