<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: How to find and fix invalid character data in MySQL</title>
	<link>http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/</link>
	<description>Stay curious!</description>
	<pubDate>Fri, 05 Sep 2008 06:24:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Michael Schuld</title>
		<link>http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/#comment-14421</link>
		<author>Michael Schuld</author>
		<pubDate>Tue, 08 Apr 2008 23:35:33 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/#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>
		<author>Nico Nel</author>
		<pubDate>Thu, 13 Dec 2007 02:15:43 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/#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's copy into the data capturing pages just keep giving problems.
Also php's strreplace (replace dash with hyphen) just dont work, allthough I suspect that is dreamweaver replacing dash'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>
		<author>thund3rbox &#187; Blog Archive &#187; links for 2006-06-08</author>
		<pubDate>Thu, 08 Jun 2006 00:39:39 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/04/14/bad-character-data-in-mysql/#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>[&#8230;] How to find and fix invalid character data in MySQL - Xaprb (tags: mysql) [&#8230;]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
