<?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: 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>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: Daniel</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/comment-page-1/#comment-796298</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 28 Jan 2011 10:17:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-796298</guid>
		<description>Thanks, this works perfectly and saved my life!</description>
		<content:encoded><![CDATA[<p>Thanks, this works perfectly and saved my life!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EON</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/comment-page-1/#comment-796162</link>
		<dc:creator>EON</dc:creator>
		<pubDate>Thu, 27 Jan 2011 14:47:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-796162</guid>
		<description>Well, I took a look in PHP functions, and didn&#039;t find any binary functions that seem likely to help. the have bin2hex... what would I do with hex data? and some comparison functions and that&#039;s all. What would I compare them against? But thanks for giving me an idea, at least. If you could explain a bit further, I&#039;d be most thankful.

Tried a REPLACE on test data in MySQL: SET field = REPLACE(field, &#039;Ã¢â‚¬Â¢&#039;, &#039;&#8226;&#039;);
MySQL said it happily replaced the string in lots of fields (and searching that string returns no rows), but when viewing in a browser, they&#039;re still there.</description>
		<content:encoded><![CDATA[<p>Well, I took a look in PHP functions, and didn&#8217;t find any binary functions that seem likely to help. the have bin2hex&#8230; what would I do with hex data? and some comparison functions and that&#8217;s all. What would I compare them against? But thanks for giving me an idea, at least. If you could explain a bit further, I&#8217;d be most thankful.</p>
<p>Tried a REPLACE on test data in MySQL: SET field = REPLACE(field, &#8216;Ã¢â‚¬Â¢&#8217;, &#8216;&bull;&#8217;);<br />
MySQL said it happily replaced the string in lots of fields (and searching that string returns no rows), but when viewing in a browser, they&#8217;re still there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thales Jacobi</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/comment-page-1/#comment-796127</link>
		<dc:creator>Thales Jacobi</dc:creator>
		<pubDate>Thu, 27 Jan 2011 10:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-796127</guid>
		<description>Hi EON, sometimes binary strings look like a strange language like that. Have you tried to retrieve this information using php binary functions as well? Just by looking at them will be impossible to know what it is...</description>
		<content:encoded><![CDATA[<p>Hi EON, sometimes binary strings look like a strange language like that. Have you tried to retrieve this information using php binary functions as well? Just by looking at them will be impossible to know what it is&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EON</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/comment-page-1/#comment-796005</link>
		<dc:creator>EON</dc:creator>
		<pubDate>Thu, 27 Jan 2011 00:02:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-796005</guid>
		<description>Well, my data is so munged that I don&#039;t even know what to do with it. The table is InnoDB, utf8, the column is utf8, the original data we imported may have been utf-8, the tables were MyISAM - it came out of Sql Server into MySQL, and may have been converted to utf-8 during that first import.

I tried (with a backup, of course) changing the column to binary, then latin-1, then back to utf-8 and the data looks exactly the same: Â¡Â§de-mystifyÂ¡Â¨ (That&#039;s a word with what I believe to be MS Word curly-quotes around it, but they&#039;re coming out as upside-down apostrophe followed by, respectively, the &quot;section&quot; glyph and an umlaut. In the db, I see Ã‚Â¡Ã‚Â§ for the first one, after the conversion (addition of Capital A with Circumflex). On a web page (utf-8 in header and content-type meta tag), it is as above. 

Searching everywhere, I have found nothing that tells me what character set encoding that is, and I&#039;ve tried many. When it was sensed (by PHP) as ISO-8859-1, it prints as &quot;ï¿½ï¿½&quot; (two black-diamond question marks, whether the web page showing it is in utf-8 or ISO-8859-1), though if I display it converted to utf-8, it&#039;s back to upside-down exclamation marks and &quot;section&quot; glyphs, etc. And some characters look like â€žÂ« (double-comma, double-left-angle-brackets), or this (in my Navicat view): Ã¢â‚¬Å¾X .

I&#039;m sadly guessing that there is no solution for this within MySQL. Does anybody have information to share?</description>
		<content:encoded><![CDATA[<p>Well, my data is so munged that I don&#8217;t even know what to do with it. The table is InnoDB, utf8, the column is utf8, the original data we imported may have been utf-8, the tables were MyISAM &#8211; it came out of Sql Server into MySQL, and may have been converted to utf-8 during that first import.</p>
<p>I tried (with a backup, of course) changing the column to binary, then latin-1, then back to utf-8 and the data looks exactly the same: Â¡Â§de-mystifyÂ¡Â¨ (That&#8217;s a word with what I believe to be MS Word curly-quotes around it, but they&#8217;re coming out as upside-down apostrophe followed by, respectively, the &#8220;section&#8221; glyph and an umlaut. In the db, I see Ã‚Â¡Ã‚Â§ for the first one, after the conversion (addition of Capital A with Circumflex). On a web page (utf-8 in header and content-type meta tag), it is as above. </p>
<p>Searching everywhere, I have found nothing that tells me what character set encoding that is, and I&#8217;ve tried many. When it was sensed (by PHP) as ISO-8859-1, it prints as &#8220;ï¿½ï¿½&#8221; (two black-diamond question marks, whether the web page showing it is in utf-8 or ISO-8859-1), though if I display it converted to utf-8, it&#8217;s back to upside-down exclamation marks and &#8220;section&#8221; glyphs, etc. And some characters look like â€žÂ« (double-comma, double-left-angle-brackets), or this (in my Navicat view): Ã¢â‚¬Å¾X .</p>
<p>I&#8217;m sadly guessing that there is no solution for this within MySQL. Does anybody have information to share?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/comment-page-1/#comment-750265</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Mon, 19 Apr 2010 20:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-750265</guid>
		<description>Btw, the situation is, I have a db where most of the fields are latin1_swedish_ci and filled with Chinese data.  The site displays fine on the frontend.  I need to convert all the data to utf8.</description>
		<content:encoded><![CDATA[<p>Btw, the situation is, I have a db where most of the fields are latin1_swedish_ci and filled with Chinese data.  The site displays fine on the frontend.  I need to convert all the data to utf8.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/comment-page-1/#comment-750264</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Mon, 19 Apr 2010 20:00:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-750264</guid>
		<description>I&#039;ve tried to follow this guide, but have no idea what &quot;123&quot; is. Am I supposed to replace certain words in the following statement with something else?

&gt; UPDATE table SET column=CONVERT(CONVERT(column USING binary) USING utf8) WHERE id=123;

Also, I&#039;m just not able to do this thing on my own. Anyone can help me convert my data for a fee? Please contact me at sanbat[@t]gmail.com</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tried to follow this guide, but have no idea what &#8220;123&#8243; is. Am I supposed to replace certain words in the following statement with something else?</p>
<p>&gt; UPDATE table SET column=CONVERT(CONVERT(column USING binary) USING utf8) WHERE id=123;</p>
<p>Also, I&#8217;m just not able to do this thing on my own. Anyone can help me convert my data for a fee? Please contact me at sanbat[@t]gmail.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sbf</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/comment-page-1/#comment-724187</link>
		<dc:creator>sbf</dc:creator>
		<pubDate>Sat, 13 Feb 2010 07:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-724187</guid>
		<description>Thank you very much, Shodan! Just what I&#039;d been looking for...</description>
		<content:encoded><![CDATA[<p>Thank you very much, Shodan! Just what I&#8217;d been looking for&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thales Jacobi</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/comment-page-1/#comment-714682</link>
		<dc:creator>Thales Jacobi</dc:creator>
		<pubDate>Tue, 26 Jan 2010 17:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-714682</guid>
		<description>Thanks Shodan. Very very useful..</description>
		<content:encoded><![CDATA[<p>Thanks Shodan. Very very useful..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codeAPE &#187; Blog Archive &#187; Fixing UTF8 data that was inserted using the latin1 encoding</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/comment-page-1/#comment-445092</link>
		<dc:creator>codeAPE &#187; Blog Archive &#187; Fixing UTF8 data that was inserted using the latin1 encoding</dc:creator>
		<pubDate>Wed, 14 Jan 2009 03:49:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-445092</guid>
		<description>[...] http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/   Posted in Computers &#124; [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/" rel="nofollow">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/</a>   Posted in Computers | [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brigada</title>
		<link>http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/comment-page-1/#comment-363317</link>
		<dc:creator>brigada</dc:creator>
		<pubDate>Sun, 19 Oct 2008 21:20:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/#comment-363317</guid>
		<description>phpmyadmin makes this very easy to change - Open your database in phpmyadmin, select a table on the left, select the field(s) you need to change, click the With All: CHANGE button and change the collation. Depending on your amount of tables (i had 40) this takes about 10 min. max, and its error-free.

You can test it out on any old database you have if you wish before doing it &#039;&#039;live&#039;&#039; :)</description>
		<content:encoded><![CDATA[<p>phpmyadmin makes this very easy to change &#8211; Open your database in phpmyadmin, select a table on the left, select the field(s) you need to change, click the With All: CHANGE button and change the collation. Depending on your amount of tables (i had 40) this takes about 10 min. max, and its error-free.</p>
<p>You can test it out on any old database you have if you wish before doing it &#8221;live&#8221; <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

