<?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: How to find and fix invalid character data in MySQL</title>
	<atom:link href="http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/</link>
	<description>Stay curious!</description>
	<lastBuildDate>Thu, 09 Feb 2012 09:56:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: MySQL replace() function &#124; Stuff...</title>
		<link>http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/#comment-16352</link>
		<dc:creator>MySQL replace() function &#124; Stuff...</dc:creator>
		<pubDate>Wed, 29 Apr 2009 20:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=124#comment-16352</guid>
		<description>[...] http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/ - &#8220;How to find and fix invalid character data in MySQL&#8221; [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/" rel="nofollow">http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/</a> &#8211; &#8220;How to find and fix invalid character data in MySQL&#8221; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DarrylDavidson</title>
		<link>http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/#comment-15154</link>
		<dc:creator>DarrylDavidson</dc:creator>
		<pubDate>Wed, 01 Oct 2008 22:38:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=124#comment-15154</guid>
		<description>Excellent tip.  I also slipped in a mod to wrap text every so often on some *very* long text blobs I needed to parse thru:

select
   lpad(substring(col1, i, 1), mod(i,40), &quot; &quot;) as char_i,
   i,
   ascii(substring(col1, i, 1)) as charcode
from test
   cross join integers
where col1  &quot;Xaprbs&quot; and i between 1 and length(col1);</description>
		<content:encoded><![CDATA[<p>Excellent tip.  I also slipped in a mod to wrap text every so often on some *very* long text blobs I needed to parse thru:</p>
<p>select<br />
   lpad(substring(col1, i, 1), mod(i,40), &#8221; &#8220;) as char_i,<br />
   i,<br />
   ascii(substring(col1, i, 1)) as charcode<br />
from test<br />
   cross join integers<br />
where col1  &#8220;Xaprbs&#8221; and i between 1 and length(col1);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Schuld</title>
		<link>http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/#comment-14421</link>
		<dc:creator>Michael Schuld</dc:creator>
		<pubDate>Tue, 08 Apr 2008 23:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=124#comment-14421</guid>
		<description>Hey, thanks for the idea with replacement. We had a few thousand data lines that were grouping funny because of the damn \r we had in some of them. Code was fixed a long time ago to stop putting those there, but the crappy data was already around messing other things up. Your trick saved me lots of agony ;)</description>
		<content:encoded><![CDATA[<p>Hey, thanks for the idea with replacement. We had a few thousand data lines that were grouping funny because of the damn \r we had in some of them. Code was fixed a long time ago to stop putting those there, but the crappy data was already around messing other things up. Your trick saved me lots of agony ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nico Nel</title>
		<link>http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/#comment-14078</link>
		<dc:creator>Nico Nel</dc:creator>
		<pubDate>Thu, 13 Dec 2007 02:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=124#comment-14078</guid>
		<description>I have been having problems with this too, inserting data from my php(v5) pages to my mysql database.

Weird thing is that it works fine on my development machine (winxp,apache,mysql,php) but fails on our live server that runs the exact same setup on win2k3 Server.

From my php code I tried various ways to prevent this, by using addslashes (works only for..welll,slashes) and mysql_real_escape_string, without any luck. Those em-dash characters that comes with data user&#039;s copy into the data capturing pages just keep giving problems.
Also php&#039;s strreplace (replace dash with hyphen) just dont work, allthough I suspect that is dreamweaver replacing dash&#039;es with hyphens in the actual source code.

Any advice on this will be highly appreciated.  I will probably get it fixed before getting a reply here, so feel free to contact me for the solution.  :-)</description>
		<content:encoded><![CDATA[<p>I have been having problems with this too, inserting data from my php(v5) pages to my mysql database.</p>
<p>Weird thing is that it works fine on my development machine (winxp,apache,mysql,php) but fails on our live server that runs the exact same setup on win2k3 Server.</p>
<p>From my php code I tried various ways to prevent this, by using addslashes (works only for..welll,slashes) and mysql_real_escape_string, without any luck. Those em-dash characters that comes with data user&#8217;s copy into the data capturing pages just keep giving problems.<br />
Also php&#8217;s strreplace (replace dash with hyphen) just dont work, allthough I suspect that is dreamweaver replacing dash&#8217;es with hyphens in the actual source code.</p>
<p>Any advice on this will be highly appreciated.  I will probably get it fixed before getting a reply here, so feel free to contact me for the solution.  :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thund3rbox &#187; Blog Archive &#187; links for 2006-06-08</title>
		<link>http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/#comment-851</link>
		<dc:creator>thund3rbox &#187; Blog Archive &#187; links for 2006-06-08</dc:creator>
		<pubDate>Thu, 08 Jun 2006 00:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=124#comment-851</guid>
		<description>&lt;p&gt;[...] How to find and fix invalid character data in MySQL - Xaprb (tags: mysql) [...]&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>[...] How to find and fix invalid character data in MySQL &#8211; Xaprb (tags: mysql) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

