<?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: Corrupted UTF-8 characters with PHP and MySQL</title>
	<atom:link href="http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/</link>
	<description>I&#039;m a sucker for girl groups.</description>
	<lastBuildDate>Mon, 12 Jul 2010 14:10:31 +0200</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jimmie</title>
		<link>http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/comment-page-1/#comment-40708</link>
		<dc:creator>Jimmie</dc:creator>
		<pubDate>Sun, 07 Feb 2010 08:58:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/#comment-40708</guid>
		<description>&lt;p&gt;This is an issue that is occurring all over the net. I read stories/articles all the time and it is very difficult to read when you&#039;re seeing â€™ everywhere - for example &quot;Whatâ€™s&quot; instead of &quot;What&#039;s&quot; A classic example of this can be found on twitter.com Go to www.twitter.com and note where it says &quot;What&#039;s happening?&quot; Now click in the edit box to change your status. As soon as you click, you will now notice the above text reads &quot;Whatâ€™s happening?&quot;
It&#039;s not just the apostrophe either, as you can see in this line copied from another site.
â€œHey Jess, you wanna do something? Iâ€™m really bored.â€
&quot;Hey Jess, you wanna do something? I&#039;m really bored.&quot;
I use Opera myself, but even when I viewed the same page in IE it still came up the same. It&#039;s not something I recall being a problem in the past. So why now? And what can someone from my end do about it? From what I can gather, you all are talking about rectifying the issue during the construction of the site. Is there something I can do as a viewer to counteract it? Is there a line of code I can add to my browser config or an addon I can download or such that will convert â€™ back to apostrophes? Because, to be quite honest, it&#039;s giving me the SH$@S!!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is an issue that is occurring all over the net. I read stories/articles all the time and it is very difficult to read when you&#8217;re seeing â€™ everywhere &#8211; for example &#8220;Whatâ€™s&#8221; instead of &#8220;What&#8217;s&#8221; A classic example of this can be found on twitter.com Go to <a href="http://www.twitter.com" rel="nofollow">http://www.twitter.com</a> and note where it says &#8220;What&#8217;s happening?&#8221; Now click in the edit box to change your status. As soon as you click, you will now notice the above text reads &#8220;Whatâ€™s happening?&#8221;
It&#8217;s not just the apostrophe either, as you can see in this line copied from another site.
â€œHey Jess, you wanna do something? Iâ€™m really bored.â€
&#8220;Hey Jess, you wanna do something? I&#8217;m really bored.&#8221;
I use Opera myself, but even when I viewed the same page in IE it still came up the same. It&#8217;s not something I recall being a problem in the past. So why now? And what can someone from my end do about it? From what I can gather, you all are talking about rectifying the issue during the construction of the site. Is there something I can do as a viewer to counteract it? Is there a line of code I can add to my browser config or an addon I can download or such that will convert â€™ back to apostrophes? Because, to be quite honest, it&#8217;s giving me the SH$@S!!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/comment-page-1/#comment-34547</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 16 Jul 2007 09:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/#comment-34547</guid>
		<description>&lt;p&gt;Thanks for mentioning this following super important comment regarding init-connect=&#039;SET NAMES utf8&#039;:
&quot;The catch is the commands won’t be executed for a user with SUPER privileges, so if you’re lazy and using ‘root’ to connect to your database, it won’t work.&quot;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for mentioning this following super important comment regarding init-connect=&#8217;SET NAMES utf8&#8242;:
&#8220;The catch is the commands won’t be executed for a user with SUPER privileges, so if you’re lazy and using ‘root’ to connect to your database, it won’t work.&#8221;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ümläüte &#8216;r&#8217; üs at shoppero Blog</title>
		<link>http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/comment-page-1/#comment-34486</link>
		<dc:creator>Ümläüte &#8216;r&#8217; üs at shoppero Blog</dc:creator>
		<pubDate>Sat, 09 Jun 2007 04:22:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/#comment-34486</guid>
		<description>&lt;p&gt;[...] erkl&#228;rt das Problem [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] erkl&#228;rt das Problem [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Zaw Htet Wai</title>
		<link>http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/comment-page-1/#comment-34464</link>
		<dc:creator>Zaw Htet Wai</dc:creator>
		<pubDate>Mon, 28 May 2007 07:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/#comment-34464</guid>
		<description>&lt;p&gt;I was also stucking in this utf-8 problem. The server&#039;s MySQL version is 4.0.25 (which does not support utf-8) and PHP is 4. Although I can save the German chars in DB correctly, when I display in HTML, they appear in incorrect format. I tried with a lot of PHP built-in string functions (substr&lt;em&gt;replace, strpos, utf8&lt;/em&gt;decode, mb&lt;em&gt;convert&lt;/em&gt;encoding(&quot;&quot;, &#039;UTF-8&#039;, &#039;HTML-ENTITIES&#039;)) and encode, decode methods but couldn&#039;t be helpful. When I chek the View-&gt; Source, all chars are correct in Notepad, but not in HTML. So far the best solution for me is to replace the German chars with related HTML numerical code (eg. &#228; =&gt; &#228;) before you insert the data to DB. After that when u retrieve the data and display them to browser, no need to do anything. Everything will be in correct format.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I was also stucking in this utf-8 problem. The server&#8217;s MySQL version is 4.0.25 (which does not support utf-8) and PHP is 4. Although I can save the German chars in DB correctly, when I display in HTML, they appear in incorrect format. I tried with a lot of PHP built-in string functions (substr<em>replace, strpos, utf8</em>decode, mb<em>convert</em>encoding(&#8220;&#8221;, &#8216;UTF-8&#8242;, &#8216;HTML-ENTITIES&#8217;)) and encode, decode methods but couldn&#8217;t be helpful. When I chek the View-&gt; Source, all chars are correct in Notepad, but not in HTML. So far the best solution for me is to replace the German chars with related HTML numerical code (eg. &#228; =&gt; &#228;) before you insert the data to DB. After that when u retrieve the data and display them to browser, no need to do anything. Everything will be in correct format.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Nils</title>
		<link>http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/comment-page-1/#comment-34441</link>
		<dc:creator>Nils</dc:creator>
		<pubDate>Sat, 19 May 2007 21:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/#comment-34441</guid>
		<description>&lt;p&gt;You can also set character&lt;em&gt;set&lt;/em&gt;client to utf8 in my.cnf.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You can also set character<em>set</em>client to utf8 in my.cnf.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Strojny</title>
		<link>http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/comment-page-1/#comment-34388</link>
		<dc:creator>Lars Strojny</dc:creator>
		<pubDate>Sat, 05 May 2007 11:54:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.papascott.de/archives/2007/05/05/corrupted-utf-8-characters-with-php-and-mysql/#comment-34388</guid>
		<description>&lt;p&gt;btw: http://usrportage.de/archives/656-What-to-do.html&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>btw: <a href="http://usrportage.de/archives/656-What-to-do.html" rel="nofollow">http://usrportage.de/archives/656-What-to-do.html</a></p>]]></content:encoded>
	</item>
</channel>
</rss>
