<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dp&#039;s blog &#187; Scripts</title>
	<atom:link href="http://blog.dp.cx/tag/scripts/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.dp.cx</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 18 Jul 2010 23:03:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>How to fix strange characters in MySQL database – Vinh Pham</title>
		<link>http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-fix-strange-characters-in-mysql-database-%25e2%2580%2593-vinh-pham</link>
		<comments>http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham#comments</comments>
		<pubDate>Tue, 26 Jan 2010 22:15:06 +0000</pubDate>
		<dc:creator>dp</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://blog.dp.cx/?p=126</guid>
		<description><![CDATA[I admit, I borrowed this from How to fix strange characters in MySQL database – Vinh Pham.  But I also added a few more that were missing; update &#60;table&#62; set &#60;field&#62; = replace(&#60;field&#62;, 'â€™', '\''); update &#60;table&#62; set &#60;field&#62; = replace(&#60;field&#62;, 'â€¦', '&#38;hellip;'); update &#60;table&#62; set &#60;field&#62; = replace(&#60;field&#62;, 'â€“', '-'); update &#60;table&#62; set &#60;field&#62; = [...]


Related posts:<ol><li><a href='http://blog.dp.cx/155/databases-and-backups' rel='bookmark' title='Permanent Link: Databases and backups'>Databases and backups</a> <small>Yesterday, I managed to delete the primary database that we...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I admit, I borrowed this from <a href="http://vinhboy.com/blog/2008/05/02/how-to-fix-strange-characters-in-mysql-database/" onclick="return TrackClick('http%3A%2F%2Fvinhboy.com%2Fblog%2F2008%2F05%2F02%2Fhow-to-fix-strange-characters-in-mysql-database%2F','How+to+fix+strange+characters+in+MySQL+database+%E2%80%93+Vinh+Pham')">How to fix strange characters in MySQL database – Vinh Pham</a>.  But I also added a few more that were missing;</p>
<p><code><br />
update &lt;table&gt; set &lt;field&gt; = replace(&lt;field&gt;, 'â€™', '\'');<br />
update &lt;table&gt; set &lt;field&gt; = replace(&lt;field&gt;, 'â€¦', '&amp;hellip;');<br />
update &lt;table&gt; set &lt;field&gt; = replace(&lt;field&gt;, 'â€“', '-');<br />
update &lt;table&gt; set &lt;field&gt; = replace(&lt;field&gt;, 'â€œ', '"');<br />
update &lt;table&gt; set &lt;field&gt; = replace(&lt;field&gt;, 'â€', '"');<br />
update &lt;table&gt; set &lt;field&gt; = replace(&lt;field&gt;, 'â€˜', '\'');<br />
update &lt;table&gt; set &lt;field&gt; = replace(&lt;field&gt;, 'â€¢', '-');<br />
update &lt;table&gt; set &lt;field&gt; = replace(&lt;field&gt;, 'â€¡', 'c');<br />
update &lt;table&gt; set &lt;field&gt; = replace(&lt;field&gt;, 'â„¢', '&amp;trade;');<br />
update &lt;table&gt; set &lt;field&gt; = replace(&lt;field&gt;, 'Â®', '&amp;reg;');</code></p>
<p>Hopefully this helps someone (probably even me) sometime down the road!</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=dd3a623f-a2d9-4310-9394-75dc6e4a92e6" alt="" /></div>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-–-vinh-pham/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham&amp;title=How+to+fix+strange+characters+in+MySQL+database+%E2%80%93+Vinh+Pham" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham&amp;title=How+to+fix+strange+characters+in+MySQL+database+%E2%80%93+Vinh+Pham" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham&amp;title=How+to+fix+strange+characters+in+MySQL+database+%E2%80%93+Vinh+Pham&amp;desc=I%20admit%2C%20I%20borrowed%20this%20from%C2%A0How%20to%20fix%20strange%20characters%20in%20MySQL%20database%20%E2%80%93%20Vinh%20Pham.%20%C2%A0But%20I%20also%20added%20a%20few%20more%20that%20were%20missing%3B%0D%0A%0D%0A%0D%0Aupdate%20%26lt%3Btable%26gt%3B%20set%20%26lt%3Bfield%26gt%3B%20%3D%20replace%28%26lt%3Bfield%26gt%3B%2C%20%27%C3%A2%E2%82%AC%E2%84%A2%27%2C%20%27%5C%27%27%29%3B%0D%0Aupdate%20%26lt%3Btable%26gt%3B%20set%20%26lt%3Bfield%26gt%3B%20%3D%20replace%28%26lt%3Bfield%26gt%3B%2C%20%27%C3%A2%E2" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham&amp;bm_description=How+to+fix+strange+characters+in+MySQL+database+%E2%80%93+Vinh+Pham&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham&amp;title=How+to+fix+strange+characters+in+MySQL+database+%E2%80%93+Vinh+Pham" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham&amp;title=How+to+fix+strange+characters+in+MySQL+database+%E2%80%93+Vinh+Pham" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham&amp;title=How+to+fix+strange+characters+in+MySQL+database+%E2%80%93+Vinh+Pham" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=How+to+fix+strange+characters+in+MySQL+database+%E2%80%93+Vinh+Pham+-+http://b2l.me/v7ea4&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham&amp;t=How+to+fix+strange+characters+in+MySQL+database+%E2%80%93+Vinh+Pham" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-friendfeed">
			<a href="http://www.friendfeed.com/share?title=How+to+fix+strange+characters+in+MySQL+database+%E2%80%93+Vinh+Pham&amp;link=http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham" rel="nofollow" class="external" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<img src="http://blog.dp.cx/?ak_action=api_record_view&id=126&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://blog.dp.cx/155/databases-and-backups' rel='bookmark' title='Permanent Link: Databases and backups'>Databases and backups</a> <small>Yesterday, I managed to delete the primary database that we...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.dp.cx/126/how-to-fix-strange-characters-in-mysql-database-%e2%80%93-vinh-pham/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
