<?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: mySQL forcing utf-8 compliance for all connections.</title>
	<atom:link href="http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections/feed" rel="self" type="application/rss+xml" />
	<link>http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections</link>
	<description>Ramblings of a Sys admin</description>
	<lastBuildDate>Wed, 25 Aug 2010 19:11:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: moon</title>
		<link>http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections/comment-page-1#comment-22090</link>
		<dc:creator>moon</dc:creator>
		<pubDate>Tue, 15 Jun 2010 14:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections#comment-22090</guid>
		<description>i&#039;ve just slapped myself.
good doc btw. ty.</description>
		<content:encoded><![CDATA[<p>i&#8217;ve just slapped myself.<br />
good doc btw. ty.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver Nassar</title>
		<link>http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections/comment-page-1#comment-15493</link>
		<dc:creator>Oliver Nassar</dc:creator>
		<pubDate>Thu, 07 Jan 2010 10:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections#comment-15493</guid>
		<description>&quot;When a client connects to the server, it sends the name of the character set that it wants to use. The server uses the name to set the character_set_client, character_set_results, and character_set_connection system variables. In effect, the server performs a SET NAMES operation using the character set name.&quot;

--
found that in mysql&#039;s docs. is that saying that since we have the init_connect setting, when we connect to the db, from say a php script, it&#039;ll automatically set those three settings accordingly on it&#039;s own?</description>
		<content:encoded><![CDATA[<p>&#8220;When a client connects to the server, it sends the name of the character set that it wants to use. The server uses the name to set the character_set_client, character_set_results, and character_set_connection system variables. In effect, the server performs a SET NAMES operation using the character set name.&#8221;</p>
<p>&#8211;<br />
found that in mysql&#8217;s docs. is that saying that since we have the init_connect setting, when we connect to the db, from say a php script, it&#8217;ll automatically set those three settings accordingly on it&#8217;s own?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver Nassar</title>
		<link>http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections/comment-page-1#comment-15491</link>
		<dc:creator>Oliver Nassar</dc:creator>
		<pubDate>Thu, 07 Jan 2010 09:08:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections#comment-15491</guid>
		<description>Quick question. Looking through `show variables;` I see the following, seemingly character/collation related variables:
character_set_client
character_set_connection
character_set_database
character_set_results
character_set_server
character_set_system

collation_connection
collation_database
collation_server

The reason I say related, is because by default they all have a latin based character/collation value on a fresh mysql install. Your command switches all but the following to utf8/utf8_general_ci:
character_set_client
character_set_connection
character_set_results
collation_connection

Those remain latin1/latin1_swedish_ci

----
My question is, do these not need to be set manually as all databases will now be created accordingly in utf8/general? Is there a reason them being latin based doesn&#039;t cause issues? I would assume making them the appropriate utf8 type would make it more consistent, but am curious what they would affect. I assumed (based on their names alone) that the connection ones (character_set_connection, collation_connection) might be of interest.

Any thoughts?</description>
		<content:encoded><![CDATA[<p>Quick question. Looking through `show variables;` I see the following, seemingly character/collation related variables:<br />
character_set_client<br />
character_set_connection<br />
character_set_database<br />
character_set_results<br />
character_set_server<br />
character_set_system</p>
<p>collation_connection<br />
collation_database<br />
collation_server</p>
<p>The reason I say related, is because by default they all have a latin based character/collation value on a fresh mysql install. Your command switches all but the following to utf8/utf8_general_ci:<br />
character_set_client<br />
character_set_connection<br />
character_set_results<br />
collation_connection</p>
<p>Those remain latin1/latin1_swedish_ci</p>
<p>&#8212;-<br />
My question is, do these not need to be set manually as all databases will now be created accordingly in utf8/general? Is there a reason them being latin based doesn&#8217;t cause issues? I would assume making them the appropriate utf8 type would make it more consistent, but am curious what they would affect. I assumed (based on their names alone) that the connection ones (character_set_connection, collation_connection) might be of interest.</p>
<p>Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Massimiliano</title>
		<link>http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections/comment-page-1#comment-13265</link>
		<dc:creator>Massimiliano</dc:creator>
		<pubDate>Fri, 13 Nov 2009 11:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections#comment-13265</guid>
		<description>Thanks Buzz,
you saves my life! i was stuck since 9.00 AM...</description>
		<content:encoded><![CDATA[<p>Thanks Buzz,<br />
you saves my life! i was stuck since 9.00 AM&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael&#8217;s Tech Blog &#187; Additional mysql server UTF8 confutation</title>
		<link>http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections/comment-page-1#comment-11312</link>
		<dc:creator>Michael&#8217;s Tech Blog &#187; Additional mysql server UTF8 confutation</dc:creator>
		<pubDate>Fri, 09 Oct 2009 11:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections#comment-11312</guid>
		<description>[...] [via Saiweb] [...]</description>
		<content:encoded><![CDATA[<p>[...] [via Saiweb] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Converting mySQL latin1 to utf8 &#124; Saiweb</title>
		<link>http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections/comment-page-1#comment-5751</link>
		<dc:creator>Converting mySQL latin1 to utf8 &#124; Saiweb</dc:creator>
		<pubDate>Tue, 14 Jul 2009 08:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections#comment-5751</guid>
		<description>[...] Force mySQL utf8 connections [...]</description>
		<content:encoded><![CDATA[<p>[...] Force mySQL utf8 connections [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olle</title>
		<link>http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections/comment-page-1#comment-4840</link>
		<dc:creator>Olle</dc:creator>
		<pubDate>Mon, 22 Jun 2009 12:48:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections#comment-4840</guid>
		<description>Thank you! Works great</description>
		<content:encoded><![CDATA[<p>Thank you! Works great</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MySQL + UTF-8 = Not So Obvious &#171; Ward&#8217;s Words</title>
		<link>http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections/comment-page-1#comment-2611</link>
		<dc:creator>MySQL + UTF-8 = Not So Obvious &#171; Ward&#8217;s Words</dc:creator>
		<pubDate>Sat, 28 Mar 2009 07:56:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections#comment-2611</guid>
		<description>[...] existing literature on the topic including possible fixes [here, here, here, here, here, here, horror story here, here] encourage the configuration of the MySQL daemon (mysqld) to [...]</description>
		<content:encoded><![CDATA[<p>[...] existing literature on the topic including possible fixes [here, here, here, here, here, here, horror story here, here] encourage the configuration of the MySQL daemon (mysqld) to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolai Schlenzig</title>
		<link>http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections/comment-page-1#comment-689</link>
		<dc:creator>Nicolai Schlenzig</dc:creator>
		<pubDate>Fri, 28 Nov 2008 22:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.saiweb.co.uk/mysql/mysql-forcing-utf-8-compliance-for-all-connections#comment-689</guid>
		<description>Thank you!

I have been looking everywhere for hints on how to get UTF-8 working on my new server.

This installation is a fully updated FreeBSD 7.0 with Apache 2.2.9 and MySQL 5.0.67.

When importing my old utf8_general_ci database everything looked fine... but reading it from my website showed characters wrong. Writing new entries into the database (from web) made something unreadable to the human eye for special chars like æøåöëü etc.

I have tried SO many options for both Apache, MySQL and my own (perl) code.

Page bookmarked! (and I will copy some info to my soon to come wiki www.confighell.com)

Thanks again

 - Nicolai</description>
		<content:encoded><![CDATA[<p>Thank you!</p>
<p>I have been looking everywhere for hints on how to get UTF-8 working on my new server.</p>
<p>This installation is a fully updated FreeBSD 7.0 with Apache 2.2.9 and MySQL 5.0.67.</p>
<p>When importing my old utf8_general_ci database everything looked fine&#8230; but reading it from my website showed characters wrong. Writing new entries into the database (from web) made something unreadable to the human eye for special chars like æøåöëü etc.</p>
<p>I have tried SO many options for both Apache, MySQL and my own (perl) code.</p>
<p>Page bookmarked! (and I will copy some info to my soon to come wiki <a href="http://www.confighell.com" rel="nofollow">http://www.confighell.com</a>)</p>
<p>Thanks again</p>
<p> &#8211; Nicolai</p>
]]></content:encoded>
	</item>
</channel>
</rss>
