<?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"
	>
<channel>
	<title>Comments on: Fixing column encoding mess in MySQL</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/</link>
	<description>Everything about MySQL Performance</description>
	<pubDate>Fri, 04 Jul 2008 15:16:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Jerk</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-245636</link>
		<dc:creator>Jerk</dc:creator>
		<pubDate>Sat, 23 Feb 2008 16:53:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-245636</guid>
		<description>@Sven Neuhaus: That worked perfectly for Latin1 encoded chars in a UTF8 col. THANX!. That saved our lives.</description>
		<content:encoded><![CDATA[<p>@Sven Neuhaus: That worked perfectly for Latin1 encoded chars in a UTF8 col. THANX!. That saved our lives.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SCC</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-242423</link>
		<dc:creator>SCC</dc:creator>
		<pubDate>Thu, 14 Feb 2008 06:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-242423</guid>
		<description>I wish there was a way to change an entire table at once instead of going column by column.  I need to convert from latin1_swedish_ci to UTF8 for dozens of columns.</description>
		<content:encoded><![CDATA[<p>I wish there was a way to change an entire table at once instead of going column by column.  I need to convert from latin1_swedish_ci to UTF8 for dozens of columns.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shodan</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-236594</link>
		<dc:creator>shodan</dc:creator>
		<pubDate>Fri, 01 Feb 2008 00:03:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-236594</guid>
		<description>Mohnkhan,
English is encoded exactly the same in both Latin-1 and UTF-8 so I'd simply go with everything in UTF-8 for unification.</description>
		<content:encoded><![CDATA[<p>Mohnkhan,<br />
English is encoded exactly the same in both Latin-1 and UTF-8 so I&#8217;d simply go with everything in UTF-8 for unification.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohiuddin Khan Inamdar</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-235849</link>
		<dc:creator>Mohiuddin Khan Inamdar</dc:creator>
		<pubDate>Wed, 30 Jan 2008 02:07:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-235849</guid>
		<description>I need some suggestion from you. I am working on  web application which has partial English and partial Chinese simplified as text. 
 English is mainly used in the whole system. Chinese is used only to store additional information like address and Chinese specific name of employee. I had  all my tables as default latin1 with collation as latin1_swedish_ci..  But as I had to add new field to the system to show Chinese info to employees who  cannot handle English as their first language.  I have changed all my fields to UTF-8, so that I can simply store anything anywhere Chinese.
 however I have only about 10 columns in whole database which use Chinese. So is this the right thing I am doing ?
options i felt were right where in anybody can point me if I am wrong.
  1.&#62; keep everything as UTF-8, collation UTF9_general_ci 
  2.&#62; keep all English columns as latin1 with collation as latin1_swedish_ci and chinese colums as as UTF-8, collation UTF9_general_ci
  Database is stored on local server (intra net) not on internet So storage is not an issue
Any suggestions please.. they are welcome.. 
Thanks in advance..

Mohnkhan
http://www.mohitech.com</description>
		<content:encoded><![CDATA[<p>I need some suggestion from you. I am working on  web application which has partial English and partial Chinese simplified as text.<br />
 English is mainly used in the whole system. Chinese is used only to store additional information like address and Chinese specific name of employee. I had  all my tables as default latin1 with collation as latin1_swedish_ci..  But as I had to add new field to the system to show Chinese info to employees who  cannot handle English as their first language.  I have changed all my fields to UTF-8, so that I can simply store anything anywhere Chinese.<br />
 however I have only about 10 columns in whole database which use Chinese. So is this the right thing I am doing ?<br />
options i felt were right where in anybody can point me if I am wrong.<br />
  1.&gt; keep everything as UTF-8, collation UTF9_general_ci<br />
  2.&gt; keep all English columns as latin1 with collation as latin1_swedish_ci and chinese colums as as UTF-8, collation UTF9_general_ci<br />
  Database is stored on local server (intra net) not on internet So storage is not an issue<br />
Any suggestions please.. they are welcome..<br />
Thanks in advance..</p>
<p>Mohnkhan<br />
<a href="http://www.mohitech.com" rel="nofollow">http://www.mohitech.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blog Merge-- Valery&#8217;s Mlog</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-231264</link>
		<dc:creator>Blog Merge-- Valery&#8217;s Mlog</dc:creator>
		<pubDate>Wed, 16 Jan 2008 10:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-231264</guid>
		<description>[...] си mysql_charsets.tar.gz съобразно една кратка и чудесна публикация в MySQL Performance Blog [...]</description>
		<content:encoded><![CDATA[<p>[...] си mysql_charsets.tar.gz съобразно една кратка и чудесна публикация в MySQL Performance Blog [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven Neuhaus</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-227124</link>
		<dc:creator>Sven Neuhaus</dc:creator>
		<pubDate>Fri, 04 Jan 2008 09:16:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-227124</guid>
		<description>Thanks for the helpful article and comments.
So if the encoding is wrong (for example latin1 data in a column marked utf8) I would CHANGE COLUMN to binary (no conversion), then CHANGE COLUMN to latin1 (no conversion) and then CHANGE COLUMN to utf8 (conversion). I haven't tried this yet but it sounds as if it'd work.</description>
		<content:encoded><![CDATA[<p>Thanks for the helpful article and comments.<br />
So if the encoding is wrong (for example latin1 data in a column marked utf8) I would CHANGE COLUMN to binary (no conversion), then CHANGE COLUMN to latin1 (no conversion) and then CHANGE COLUMN to utf8 (conversion). I haven&#8217;t tried this yet but it sounds as if it&#8217;d work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shodan</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-220217</link>
		<dc:creator>shodan</dc:creator>
		<pubDate>Tue, 18 Dec 2007 19:14:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-220217</guid>
		<description>Right. I've just tested changing the column charset to binary and UTF-8 and can confirm it works fine. So the rule of thumb is:

1) if the encoding itself is OK for the whole table, but MySQL thinks there's some &lt;i&gt;other&lt;/i&gt; encoding, use CHANGE COLUMN to binary and back to proper encoding. (This is the case that jrabbit has.)

2) if the encoding itself is not OK, or if you only need to fix several rows, use CONVERT() tricks. (This is the case which I had.)</description>
		<content:encoded><![CDATA[<p>Right. I&#8217;ve just tested changing the column charset to binary and UTF-8 and can confirm it works fine. So the rule of thumb is:</p>
<p>1) if the encoding itself is OK for the whole table, but MySQL thinks there&#8217;s some <i>other</i> encoding, use CHANGE COLUMN to binary and back to proper encoding. (This is the case that jrabbit has.)</p>
<p>2) if the encoding itself is not OK, or if you only need to fix several rows, use CONVERT() tricks. (This is the case which I had.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-220202</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Tue, 18 Dec 2007 19:01:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-220202</guid>
		<description>Teak,

I think you miss Andrews point a bit.  It is not about the case when ALL data in the table is in wrong encoding but only single row (note id=123 in statements)  Or may be several rows.</description>
		<content:encoded><![CDATA[<p>Teak,</p>
<p>I think you miss Andrews point a bit.  It is not about the case when ALL data in the table is in wrong encoding but only single row (note id=123 in statements)  Or may be several rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teak</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-220155</link>
		<dc:creator>Teak</dc:creator>
		<pubDate>Tue, 18 Dec 2007 16:48:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-220155</guid>
		<description>Altering the talbe type should be much quicker on big tables.</description>
		<content:encoded><![CDATA[<p>Altering the talbe type should be much quicker on big tables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-220152</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 18 Dec 2007 16:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-220152</guid>
		<description>The manual shows doing the same thing, except altering the column type to binary and back. The CONVERT method is a little smoother, since it's all one statement.

http://dev.mysql.com/doc/refman/5.0/en/charset-conversion.html</description>
		<content:encoded><![CDATA[<p>The manual shows doing the same thing, except altering the column type to binary and back. The CONVERT method is a little smoother, since it&#8217;s all one statement.</p>
<p><a href="http://dev.mysql.com/doc/refman/5.0/en/charset-conversion.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.0/en/charset-conversion.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
