<?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: Configuring MySQL to use UTF-8</title>
	<atom:link href="http://cameronyule.com/2008/07/configuring-mysql-to-use-utf-8/feed" rel="self" type="application/rss+xml" />
	<link>http://cameronyule.com/2008/07/configuring-mysql-to-use-utf-8</link>
	<description>Glasgow based new media developer Cameron Yule.</description>
	<lastBuildDate>Fri, 11 Jun 2010 16:33:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Loki Clock</title>
		<link>http://cameronyule.com/2008/07/configuring-mysql-to-use-utf-8/comment-page-1#comment-438</link>
		<dc:creator>Loki Clock</dc:creator>
		<pubDate>Fri, 11 Jun 2010 16:33:30 +0000</pubDate>
		<guid isPermaLink="false">http://cameronyule.com/?p=56#comment-438</guid>
		<description>I managed to wrestle MySQL into Unicode submission using this advice in conjunction with my.cnf specifications mentioned in Getting out of MySQL Character Set Hell. I FEEL LIKE AN EXPERT. Much love to you, Yule, for showing me how to be sufficiently pedantic.</description>
		<content:encoded><![CDATA[<p>I managed to wrestle MySQL into Unicode submission using this advice in conjunction with my.cnf specifications mentioned in Getting out of MySQL Character Set Hell. I FEEL LIKE AN EXPERT. Much love to you, Yule, for showing me how to be sufficiently pedantic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan</title>
		<link>http://cameronyule.com/2008/07/configuring-mysql-to-use-utf-8/comment-page-1#comment-434</link>
		<dc:creator>Stan</dc:creator>
		<pubDate>Wed, 24 Feb 2010 18:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://cameronyule.com/?p=56#comment-434</guid>
		<description>nvm, I figured something out. It only showed that output when logged into mysql as root. If logged in as user it shows correctly :)</description>
		<content:encoded><![CDATA[<p>nvm, I figured something out. It only showed that output when logged into mysql as root. If logged in as user it shows correctly :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan</title>
		<link>http://cameronyule.com/2008/07/configuring-mysql-to-use-utf-8/comment-page-1#comment-433</link>
		<dc:creator>Stan</dc:creator>
		<pubDate>Wed, 24 Feb 2010 18:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://cameronyule.com/?p=56#comment-433</guid>
		<description>Hi Cameron,

I got the same issue as Enrico. here my outputs:

[quote]
mysql&gt; show variables like &quot;%character%&quot;;
+--------------------------+----------------------------+
&#124; Variable_name            &#124; Value                      &#124;
+--------------------------+----------------------------+
&#124; character_set_client     &#124; latin1                     &#124; 
&#124; character_set_connection &#124; latin1                     &#124; 
&#124; character_set_database   &#124; utf8                       &#124; 
&#124; character_set_filesystem &#124; binary                     &#124; 
&#124; character_set_results    &#124; latin1                     &#124; 
&#124; character_set_server     &#124; utf8                       &#124; 
&#124; character_set_system     &#124; utf8                       &#124; 
&#124; character_sets_dir       &#124; /usr/share/mysql/charsets/ &#124; 
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
[/quote]

[quote]
mysql&gt; show variables like &#039;init%&#039;;
+---------------+----------------+
&#124; Variable_name &#124; Value          &#124;
+---------------+----------------+
&#124; init_connect  &#124; SET NAMES utf8 &#124; 
&#124; init_file     &#124;                &#124; 
&#124; init_slave    &#124;                &#124; 
+---------------+----------------+
[/quote]

[quote]
mysql&gt; show variables like &#039;init%&#039;;
+---------------+----------------+
&#124; Variable_name &#124; Value          &#124;
+---------------+----------------+
&#124; init_connect  &#124; SET NAMES utf8 &#124; 
&#124; init_file     &#124;                &#124; 
&#124; init_slave    &#124;                &#124; 
+---------------+----------------+
[/quote]

Do you have any suggestions?

Regards,
Stan</description>
		<content:encoded><![CDATA[<p>Hi Cameron,</p>
<p>I got the same issue as Enrico. here my outputs:</p>
<p>[quote]<br />
mysql&gt; show variables like &#8220;%character%&#8221;;<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| Variable_name            | Value                      |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| character_set_client     | latin1                     |<br />
| character_set_connection | latin1                     |<br />
| character_set_database   | utf8                       |<br />
| character_set_filesystem | binary                     |<br />
| character_set_results    | latin1                     |<br />
| character_set_server     | utf8                       |<br />
| character_set_system     | utf8                       |<br />
| character_sets_dir       | /usr/share/mysql/charsets/ |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
8 rows in set (0.00 sec)<br />
[/quote]</p>
<p>[quote]<br />
mysql&gt; show variables like &#8216;init%&#8217;;<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| Variable_name | Value          |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| init_connect  | SET NAMES utf8 |<br />
| init_file     |                |<br />
| init_slave    |                |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
[/quote]</p>
<p>[quote]<br />
mysql&gt; show variables like &#8216;init%&#8217;;<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| Variable_name | Value          |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| init_connect  | SET NAMES utf8 |<br />
| init_file     |                |<br />
| init_slave    |                |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
[/quote]</p>
<p>Do you have any suggestions?</p>
<p>Regards,<br />
Stan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: masha</title>
		<link>http://cameronyule.com/2008/07/configuring-mysql-to-use-utf-8/comment-page-1#comment-374</link>
		<dc:creator>masha</dc:creator>
		<pubDate>Mon, 18 May 2009 06:59:43 +0000</pubDate>
		<guid isPermaLink="false">http://cameronyule.com/?p=56#comment-374</guid>
		<description>i did all but when i run my site on localhost, it says connection failed. Please tell me what to do for this.
 thanks</description>
		<content:encoded><![CDATA[<p>i did all but when i run my site on localhost, it says connection failed. Please tell me what to do for this.<br />
 thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin</title>
		<link>http://cameronyule.com/2008/07/configuring-mysql-to-use-utf-8/comment-page-1#comment-309</link>
		<dc:creator>Gavin</dc:creator>
		<pubDate>Tue, 13 Jan 2009 19:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://cameronyule.com/?p=56#comment-309</guid>
		<description>Bear in mind that connecting are root will bypass the init-connect config setting.  Just one of the many reasons why it&#039;s better to set up secondary users on the server, even if it&#039;s just a local development box.</description>
		<content:encoded><![CDATA[<p>Bear in mind that connecting are root will bypass the init-connect config setting.  Just one of the many reasons why it&#8217;s better to set up secondary users on the server, even if it&#8217;s just a local development box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cameron</title>
		<link>http://cameronyule.com/2008/07/configuring-mysql-to-use-utf-8/comment-page-1#comment-196</link>
		<dc:creator>Cameron</dc:creator>
		<pubDate>Wed, 24 Sep 2008 10:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://cameronyule.com/?p=56#comment-196</guid>
		<description>Hi Enrico, it looks as if the line:

init-connect=&#039;SET NAMES utf8&#039;

is not being executed - is this definitely in your my.cnf?

From the MySQL command prompt, try this to check it&#039;s working;
&lt;pre lang=&quot;bash&quot;&gt;
mysql&gt; show variables like &#039;init%&#039;;
+---------------+----------------+
&#124; Variable_name &#124; Value          &#124;
+---------------+----------------+
&#124; init_connect  &#124; SET NAMES utf8 &#124; 
&#124; init_file     &#124;                &#124; 
&#124; init_slave    &#124;                &#124; 
+---------------+----------------+
3 rows in set (0.00 sec)
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi Enrico, it looks as if the line:</p>
<p>init-connect=&#8217;SET NAMES utf8&#8242;</p>
<p>is not being executed &#8211; is this definitely in your my.cnf?</p>
<p>From the MySQL command prompt, try this to check it&#8217;s working;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> show variables like <span style="color: #ff0000;">'init%'</span>;
+---------------+----------------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name <span style="color: #000000; font-weight: bold;">|</span> Value          <span style="color: #000000; font-weight: bold;">|</span>
+---------------+----------------+
<span style="color: #000000; font-weight: bold;">|</span> init_connect  <span style="color: #000000; font-weight: bold;">|</span> SET NAMES utf8 <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> init_file     <span style="color: #000000; font-weight: bold;">|</span>                <span style="color: #000000; font-weight: bold;">|</span> 
<span style="color: #000000; font-weight: bold;">|</span> init_slave    <span style="color: #000000; font-weight: bold;">|</span>                <span style="color: #000000; font-weight: bold;">|</span> 
+---------------+----------------+
<span style="color: #000000;">3</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Enrico</title>
		<link>http://cameronyule.com/2008/07/configuring-mysql-to-use-utf-8/comment-page-1#comment-194</link>
		<dc:creator>Enrico</dc:creator>
		<pubDate>Mon, 22 Sep 2008 17:07:02 +0000</pubDate>
		<guid isPermaLink="false">http://cameronyule.com/?p=56#comment-194</guid>
		<description>Hi,
thanks for sharing this meaningful example of how to manage databases and charsets.
I tried what you say here, and I got this strange &quot;limbo&quot; solution:
&lt;pre lang=&quot;bash&quot;&gt;
mysql&gt; SHOW VARIABLES LIKE &#039;collation%&#039;;
+----------------------+-------------------+
&#124; Variable_name        &#124; Value             &#124;
+----------------------+-------------------+
&#124; collation_connection &#124; latin1_swedish_ci &#124;
&#124; collation_database   &#124; utf8_general_ci   &#124;
&#124; collation_server     &#124; utf8_general_ci   &#124;
+----------------------+-------------------+
3 rows in set (0.00 sec)
&lt;/pre&gt;
&lt;pre lang=&quot;bash&quot;&gt;
mysql&gt; SHOW VARIABLES LIKE &#039;character_set%&#039;;
+--------------------------+----------------------------+
&#124; Variable_name            &#124; Value                      &#124;
+--------------------------+----------------------------+
&#124; character_set_client     &#124; latin1                     &#124;
&#124; character_set_connection &#124; latin1                     &#124;
&#124; character_set_database   &#124; utf8                       &#124;
&#124; character_set_filesystem &#124; binary                     &#124;
&#124; character_set_results    &#124; latin1                     &#124;
&#124; character_set_server     &#124; utf8                       &#124;
&#124; character_set_system     &#124; utf8                       &#124;
&#124; character_sets_dir       &#124; /usr/share/mysql/charsets/ &#124;
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
&lt;/pre&gt;
Oh, and
Your MySQL connection id is 6836 to server version: 5.0.27
just to take into account different versions of mysql.

Now what can you think should I do?

Bye,
Enrico</description>
		<content:encoded><![CDATA[<p>Hi,<br />
thanks for sharing this meaningful example of how to manage databases and charsets.<br />
I tried what you say here, and I got this strange &#8220;limbo&#8221; solution:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> SHOW VARIABLES LIKE <span style="color: #ff0000;">'collation%'</span>;
+----------------------+-------------------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name        <span style="color: #000000; font-weight: bold;">|</span> Value             <span style="color: #000000; font-weight: bold;">|</span>
+----------------------+-------------------+
<span style="color: #000000; font-weight: bold;">|</span> collation_connection <span style="color: #000000; font-weight: bold;">|</span> latin1_swedish_ci <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> collation_database   <span style="color: #000000; font-weight: bold;">|</span> utf8_general_ci   <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> collation_server     <span style="color: #000000; font-weight: bold;">|</span> utf8_general_ci   <span style="color: #000000; font-weight: bold;">|</span>
+----------------------+-------------------+
<span style="color: #000000;">3</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> SHOW VARIABLES LIKE <span style="color: #ff0000;">'character_set%'</span>;
+--------------------------+----------------------------+
<span style="color: #000000; font-weight: bold;">|</span> Variable_name            <span style="color: #000000; font-weight: bold;">|</span> Value                      <span style="color: #000000; font-weight: bold;">|</span>
+--------------------------+----------------------------+
<span style="color: #000000; font-weight: bold;">|</span> character_set_client     <span style="color: #000000; font-weight: bold;">|</span> latin1                     <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> character_set_connection <span style="color: #000000; font-weight: bold;">|</span> latin1                     <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> character_set_database   <span style="color: #000000; font-weight: bold;">|</span> utf8                       <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> character_set_filesystem <span style="color: #000000; font-weight: bold;">|</span> binary                     <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> character_set_results    <span style="color: #000000; font-weight: bold;">|</span> latin1                     <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> character_set_server     <span style="color: #000000; font-weight: bold;">|</span> utf8                       <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> character_set_system     <span style="color: #000000; font-weight: bold;">|</span> utf8                       <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> character_sets_dir       <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>charsets<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span>
+--------------------------+----------------------------+
<span style="color: #000000;">8</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Oh, and<br />
Your MySQL connection id is 6836 to server version: 5.0.27<br />
just to take into account different versions of mysql.</p>
<p>Now what can you think should I do?</p>
<p>Bye,<br />
Enrico</p>
]]></content:encoded>
	</item>
</channel>
</rss>

