<?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: Converting Character Sets</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/</link>
	<description>Percona&#039;s MySQL &#38; InnoDB performance and scalability blog</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:45:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Chris Huntley</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/comment-page-1/#comment-765573</link>
		<dc:creator>Chris Huntley</dc:creator>
		<pubDate>Tue, 25 May 2010 16:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=636#comment-765573</guid>
		<description>Hi Ryan,
My blog is on a Wordpress platform.  Do you know if I&#039;ll have to make the upgrade to utf8?  Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Ryan,<br />
My blog is on a WordPress platform.  Do you know if I&#8217;ll have to make the upgrade to utf8?  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bfarber</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/comment-page-1/#comment-703659</link>
		<dc:creator>bfarber</dc:creator>
		<pubDate>Wed, 30 Dec 2009 23:14:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=636#comment-703659</guid>
		<description>While the general information in the article is useful, there&#039;s 2 issues I&#039;m spotting (since I recently undertook the same task).

1) Many databases store any charset text into the latin1 column, part of legacy MySQL 4 using latin1 as the default.  While the text stores and can be displayed just fine from a front end application querying it, if you just change the character set I would assume MySQL is going to literally try to convert from latin1 to utf8, and in this case since the text isn&#039;t latin1 it gets mangled.

2) I&#039;ve seen many applications that store serialized data in the database (from PHP serialize() function).  This method would break that serialized string, making it impossible to deserialize it later.


Just some things to point out.</description>
		<content:encoded><![CDATA[<p>While the general information in the article is useful, there&#8217;s 2 issues I&#8217;m spotting (since I recently undertook the same task).</p>
<p>1) Many databases store any charset text into the latin1 column, part of legacy MySQL 4 using latin1 as the default.  While the text stores and can be displayed just fine from a front end application querying it, if you just change the character set I would assume MySQL is going to literally try to convert from latin1 to utf8, and in this case since the text isn&#8217;t latin1 it gets mangled.</p>
<p>2) I&#8217;ve seen many applications that store serialized data in the database (from PHP serialize() function).  This method would break that serialized string, making it impossible to deserialize it later.</p>
<p>Just some things to point out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nadavkav</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/comment-page-1/#comment-529172</link>
		<dc:creator>nadavkav</dc:creator>
		<pubDate>Fri, 03 Apr 2009 17:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=636#comment-529172</guid>
		<description>Thank you ! for this valuable post. 
But it was a little to late for me, after trying one of those suggestions on the internet 
similar to the #2 method category for converting text to binary and back to text again.
We use a Mahara (ePortfolio framework) that was installed with the wrong charset 
and got filled with data very quickly, before i had that chance to notice this issue.
eventually (after #2 method did not work properly) i had to manually change the relevant
DB fields :-( 
A good ending to this story is that everything works fine, now :-)</description>
		<content:encoded><![CDATA[<p>Thank you ! for this valuable post.<br />
But it was a little to late for me, after trying one of those suggestions on the internet<br />
similar to the #2 method category for converting text to binary and back to text again.<br />
We use a Mahara (ePortfolio framework) that was installed with the wrong charset<br />
and got filled with data very quickly, before i had that chance to notice this issue.<br />
eventually (after #2 method did not work properly) i had to manually change the relevant<br />
DB fields <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /><br />
A good ending to this story is that everything works fine, now <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shlomi Noach</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/comment-page-1/#comment-518587</link>
		<dc:creator>Shlomi Noach</dc:creator>
		<pubDate>Wed, 25 Mar 2009 17:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=636#comment-518587</guid>
		<description>@Gil,

good question. Will try to set up the configuration and test.</description>
		<content:encoded><![CDATA[<p>@Gil,</p>
<p>good question. Will try to set up the configuration and test.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gil</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/comment-page-1/#comment-518582</link>
		<dc:creator>Gil</dc:creator>
		<pubDate>Wed, 25 Mar 2009 16:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=636#comment-518582</guid>
		<description>Thanks @Schlomi

My question was more about what happens if you have latin1 on the master and utf8 on the slave. Same problem?</description>
		<content:encoded><![CDATA[<p>Thanks @Schlomi</p>
<p>My question was more about what happens if you have latin1 on the master and utf8 on the slave. Same problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shlomi Noach</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/comment-page-1/#comment-518581</link>
		<dc:creator>Shlomi Noach</dc:creator>
		<pubDate>Wed, 25 Mar 2009 16:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=636#comment-518581</guid>
		<description>@Gil
If you have a utf8 column on a master, and a latin1 column on a slave, and try to replicate, you may get corrupted data if you insert true utf8 text into the master. The slave will not be able to store utf8 characters and will truncate them.</description>
		<content:encoded><![CDATA[<p>@Gil<br />
If you have a utf8 column on a master, and a latin1 column on a slave, and try to replicate, you may get corrupted data if you insert true utf8 text into the master. The slave will not be able to store utf8 characters and will truncate them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gil</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/comment-page-1/#comment-518577</link>
		<dc:creator>Gil</dc:creator>
		<pubDate>Wed, 25 Mar 2009 16:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=636#comment-518577</guid>
		<description>In a multi-master replication setup, if I broke replication and ran this script on the passive master, then started replication from active-&gt;passive, would the queries fail or do other unwanted things? Are the binary logs charset-sensitive during replication?</description>
		<content:encoded><![CDATA[<p>In a multi-master replication setup, if I broke replication and ran this script on the passive master, then started replication from active-&gt;passive, would the queries fail or do other unwanted things? Are the binary logs charset-sensitive during replication?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shlomi Noach</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/comment-page-1/#comment-516276</link>
		<dc:creator>Shlomi Noach</dc:creator>
		<pubDate>Mon, 23 Mar 2009 15:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=636#comment-516276</guid>
		<description>@Ryan,

Cheers. There&#039;s room for more than one utility per task!

Shlomi</description>
		<content:encoded><![CDATA[<p>@Ryan,</p>
<p>Cheers. There&#8217;s room for more than one utility per task!</p>
<p>Shlomi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Lowe</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/comment-page-1/#comment-516238</link>
		<dc:creator>Ryan Lowe</dc:creator>
		<pubDate>Mon, 23 Mar 2009 14:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=636#comment-516238</guid>
		<description>@shlomi Had I seen that script sooner, I may have used it!  convert_charset has --columns parameter, so it is possible to do one-and-and-only-one column at a time.

@jakub &amp; @pavel This script assumes latin1 data is stored in latin1 columns:)</description>
		<content:encoded><![CDATA[<p>@shlomi Had I seen that script sooner, I may have used it!  convert_charset has &#8211;columns parameter, so it is possible to do one-and-and-only-one column at a time.</p>
<p>@jakub &#038; @pavel This script assumes latin1 data is stored in latin1 columns:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/comment-page-1/#comment-516048</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Mon, 23 Mar 2009 10:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=636#comment-516048</guid>
		<description>What happens if a column has mixed latin1 and utf8 at the same time (left from MySQL 4)?
Does MySQL detect that right?</description>
		<content:encoded><![CDATA[<p>What happens if a column has mixed latin1 and utf8 at the same time (left from MySQL 4)?<br />
Does MySQL detect that right?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

