<?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: The Proper Way To Use UTF-8 (PHP/MySQL)</title>
	<atom:link href="http://www.latko.org/2009/07/02/the-proper-way-to-use-utf8-php-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.latko.org/2009/07/02/the-proper-way-to-use-utf8-php-mysql/</link>
	<description>A Misanthropic Anthropoid With Something to Say</description>
	<lastBuildDate>Fri, 30 Jul 2010 08:54:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: DR</title>
		<link>http://www.latko.org/2009/07/02/the-proper-way-to-use-utf8-php-mysql/comment-page-1/#comment-9199</link>
		<dc:creator>DR</dc:creator>
		<pubDate>Mon, 05 Oct 2009 17:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.latko.org/?p=505#comment-9199</guid>
		<description>Good to know. I realized it worked without the collation, but included it for safe measure. Thanks.</description>
		<content:encoded><![CDATA[<p>Good to know. I realized it worked without the collation, but included it for safe measure. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Latko</title>
		<link>http://www.latko.org/2009/07/02/the-proper-way-to-use-utf8-php-mysql/comment-page-1/#comment-8097</link>
		<dc:creator>Chris Latko</dc:creator>
		<pubDate>Wed, 02 Sep 2009 00:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.latko.org/?p=505#comment-8097</guid>
		<description>Apologies for getting back to you so late. I&#039;ve been on a national tour for the past 16 days. 
 
Here is a code snippet from a DB class I frequently use (the code below is getting garbled a bit): 
 
&lt;pre class=&quot;php&quot;&gt;
public function read($query) { 
$this-&gt;mysqliObj_r-&gt;query(&#039;SET CHARACTER SET &#039;utf8&#039;&#039;); 
$this-&gt;mysqliObj_r-&gt;query(&#039;SET collation_connection = &#039;utf8_general_ci&#039;&#039;); 
if(!$resultObj = $this-&gt;mysqliObj_r-&gt;query($query)) { 
$error = &#039;Query Error: &#039;.$this-&gt;mysqliObj_r-&gt;error.&quot;n&quot;.&#039;SQL: &#039;.$query; 
echo $error.&#039;&lt;br /&gt;&#039;; 
} 
return $resultObj; 
} &lt;/pre&gt;
 
The mysliObj is an internal construct of my class. For more information, check out PHP&#039;s docs on &lt;a href=&quot;http://us3.php.net/manual/en/book.mysqli.php&quot; rel=&quot;nofollow&quot;&gt;mysqli&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Apologies for getting back to you so late. I&#039;ve been on a national tour for the past 16 days. </p>
<p>Here is a code snippet from a DB class I frequently use (the code below is getting garbled a bit): </p>
<pre class="php">
public function read($query) {
$this-&gt;mysqliObj_r-&gt;query(&#039;SET CHARACTER SET &#039;utf8&#039;&#039;);
$this-&gt;mysqliObj_r-&gt;query(&#039;SET collation_connection = &#039;utf8_general_ci&#039;&#039;);
if(!$resultObj = $this-&gt;mysqliObj_r-&gt;query($query)) {
$error = &#039;Query Error: &#039;.$this-&gt;mysqliObj_r-&gt;error.&quot;n&quot;.&#039;SQL: &#039;.$query;
echo $error.&#039;&#039;;
}
return $resultObj;
} </pre>
<p>The mysliObj is an internal construct of my class. For more information, check out PHP&#8217;s docs on <a href="http://us3.php.net/manual/en/book.mysqli.php" rel="nofollow">mysqli</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ehab</title>
		<link>http://www.latko.org/2009/07/02/the-proper-way-to-use-utf8-php-mysql/comment-page-1/#comment-7925</link>
		<dc:creator>Ehab</dc:creator>
		<pubDate>Wed, 26 Aug 2009 04:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.latko.org/?p=505#comment-7925</guid>
		<description>Could you please show a full php code for using  
mysqliObj-&gt;query(&quot;SET CHARACTER SET &#039;utf8&#039;&quot;); 
mysqliObj-&gt;query(&quot;SET collation_connection = &#039;utf8_general_ci&#039;&quot;); 
and passing date from browser to mysql. 
 
I am just learning this stuff and need to use multilingual data on a website wih  mysql but after a couple days of research I can not seem to get it working. I could not find any help on msqliObj-&gt;  eiher. 
 
Thanks, this would be very appreciated. </description>
		<content:encoded><![CDATA[<p>Could you please show a full php code for using<br />
mysqliObj-&gt;query(&quot;SET CHARACTER SET &#039;utf8&#039;&quot;);<br />
mysqliObj-&gt;query(&quot;SET collation_connection = &#039;utf8_general_ci&#039;&quot;);<br />
and passing date from browser to mysql. </p>
<p>I am just learning this stuff and need to use multilingual data on a website wih  mysql but after a couple days of research I can not seem to get it working. I could not find any help on msqliObj-&gt;  eiher. </p>
<p>Thanks, this would be very appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Latko</title>
		<link>http://www.latko.org/2009/07/02/the-proper-way-to-use-utf8-php-mysql/comment-page-1/#comment-5089</link>
		<dc:creator>Chris Latko</dc:creator>
		<pubDate>Fri, 03 Jul 2009 14:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.latko.org/?p=505#comment-5089</guid>
		<description>Good to know. I realized it worked without the collation, but included it for safe measure. Thanks. </description>
		<content:encoded><![CDATA[<p>Good to know. I realized it worked without the collation, but included it for safe measure. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maarten</title>
		<link>http://www.latko.org/2009/07/02/the-proper-way-to-use-utf8-php-mysql/comment-page-1/#comment-5082</link>
		<dc:creator>Maarten</dc:creator>
		<pubDate>Fri, 03 Jul 2009 13:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.latko.org/?p=505#comment-5082</guid>
		<description>The collation is not needed btw, thats just for sorting </description>
		<content:encoded><![CDATA[<p>The collation is not needed btw, thats just for sorting</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Stark</title>
		<link>http://www.latko.org/2009/07/02/the-proper-way-to-use-utf8-php-mysql/comment-page-1/#comment-5033</link>
		<dc:creator>Jonathan Stark</dc:creator>
		<pubDate>Fri, 03 Jul 2009 00:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.latko.org/?p=505#comment-5033</guid>
		<description>You are my hero. I have been struggling with this for years. I have noticed that phpMyAdmin manages to display the data correctly </description>
		<content:encoded><![CDATA[<p>You are my hero. I have been struggling with this for years. I have noticed that phpMyAdmin manages to display the data correctly</p>
]]></content:encoded>
	</item>
</channel>
</rss>
