<?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: Battling XHTML :: Storing UTF-8 data in MySQL</title>
	<atom:link href="http://themattreid.com/wordpress/2008/09/11/battling-xhtml-storing-utf-8-data-in-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://themattreid.com/wordpress/2008/09/11/battling-xhtml-storing-utf-8-data-in-mysql/</link>
	<description>MySQL DBA &#124; Linux&#039;er</description>
	<lastBuildDate>Thu, 09 Sep 2010 17:40:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: admin</title>
		<link>http://themattreid.com/wordpress/2008/09/11/battling-xhtml-storing-utf-8-data-in-mysql/comment-page-1/#comment-22</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 12 Sep 2008 00:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://themattreid.com/wordpress/?p=65#comment-22</guid>
		<description>mike503, I would agree with you however I&#039;m not using any form data in this case since the xml parser that is inputting the data is driven from the command line with php. 

I posted the good solution here: http://themattreid.com/wordpress/?p=66</description>
		<content:encoded><![CDATA[<p>mike503, I would agree with you however I&#8217;m not using any form data in this case since the xml parser that is inputting the data is driven from the command line with php. </p>
<p>I posted the good solution here: <a href="http://themattreid.com/wordpress/?p=66" rel="nofollow">http://themattreid.com/wordpress/?p=66</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike503</title>
		<link>http://themattreid.com/wordpress/2008/09/11/battling-xhtml-storing-utf-8-data-in-mysql/comment-page-1/#comment-21</link>
		<dc:creator>mike503</dc:creator>
		<pubDate>Fri, 12 Sep 2008 00:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://themattreid.com/wordpress/?p=65#comment-21</guid>
		<description>If the meta tag is set to content-type utf-8, the form input will be utf-8 encoded, and passed to mysql as plain old binary data. mysql doesn&#039;t care the encoding even with latin1 charset. (it would if you were doing mysql string functions on it though)

however for just inserting and fetching information you can dump utf-8 encoded content into any type of column and display it back out to the browser with the same utf-8 meta tag and it works great.

i believe the only thing i do on output is htmlspecialchars() to encode any html/XSS attempts.</description>
		<content:encoded><![CDATA[<p>If the meta tag is set to content-type utf-8, the form input will be utf-8 encoded, and passed to mysql as plain old binary data. mysql doesn&#8217;t care the encoding even with latin1 charset. (it would if you were doing mysql string functions on it though)</p>
<p>however for just inserting and fetching information you can dump utf-8 encoded content into any type of column and display it back out to the browser with the same utf-8 meta tag and it works great.</p>
<p>i believe the only thing i do on output is htmlspecialchars() to encode any html/XSS attempts.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
