<?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>vevmedia.net/blog &#187; SQL</title>
	<atom:link href="http://vevmedia.net/blog/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://vevmedia.net/blog</link>
	<description>If we don&#039;t change direction soon, we&#039;ll end up where we&#039;re going.</description>
	<lastBuildDate>Mon, 30 Aug 2010 15:01:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>SQL special Char replacement</title>
		<link>http://vevmedia.net/blog/sql-special-char-replacement/</link>
		<comments>http://vevmedia.net/blog/sql-special-char-replacement/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 15:13:33 +0000</pubDate>
		<dc:creator>vevmesteren</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[french letters]]></category>
		<category><![CDATA[special chars]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://vevmedia.net/blog/?p=1263</guid>
		<description><![CDATA[I do myself run into this problem far to many times. Special Characters that end up being al jarbled up in my Database. I am talking about french special characters but I am sure that most other languages like Scandinavian and German chars would fall in under the same category. So over the course of [...]]]></description>
			<content:encoded><![CDATA[<p>I do myself run into this problem far to many times. Special Characters that end up being al jarbled up in my Database. I am talking about french special characters but I am sure that most other languages like Scandinavian and German chars would fall in under the same category. So over the course of the last few years I have been  building my own replacement script that really comes in handy when I need to quickly find and replace chars across my database. Bare in mind that I built this as I went along. So there are missing ones still. But they are real easy to find. Just insert one record for each weird char that you run into through your app, then update this SQL script accordingly. </p>
<p><code>UPDATE table<br />
SET<br />
field = REPLACE( field, 'ÃƒÂ©', 'é' ),<br />
field = REPLACE( field, 'ÃƒÂ‰', 'É' ),<br />
field = REPLACE( field, 'Ã¨', 'è' ),<br />
field = REPLACE( field, 'ÃƒÂˆ', 'È' );<br />
field = REPLACE( field, 'Ã´', 'ô' ),<br />
field = REPLACE( field, 'ÃƒÂ”', 'Ô' ),<br />
field = REPLACE( field, 'ÃƒÂ¨', 'ê' ),<br />
field = REPLACE( field, 'ÃƒÂ¢', 'â' ),<br />
field = REPLACE( field, 'ÃƒÂ®', 'î' ),<br />
field = REPLACE( field, 'ÃƒÂŽ', 'Î' ),<br />
field = REPLACE( field, 'ÃƒÂ', 'à' ),<br />
field = REPLACE( field, 'ÃƒÂ§', 'ç' );</code></p>
<p>Sharing is caring, right? And what better time to do so then these days. </p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://vevmedia.net/blog/sql-special-char-replacement/&amp;title=SQL+special+Char+replacement" 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://vevmedia.net/blog/sql-special-char-replacement/&amp;title=SQL+special+Char+replacement" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://vevmedia.net/blog/sql-special-char-replacement/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=SQL+special+Char+replacement+-+1&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://vevmedia.net/blog/sql-special-char-replacement/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-hotmail">
			<a href="http://mail.live.com/?rru=compose?subject=SQL+special+Char+replacement&amp;body=Link: http://vevmedia.net/blog/sql-special-char-replacement/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%20do%20myself%20run%20into%20this%20problem%20far%20to%20many%20times.%20Special%20Characters%20that%20end%20up%20being%20al%20jarbled%20up%20in%20my%20Database.%20I%20am%20talking%20about%20french%20special%20characters%20but%20I%20am%20sure%20that%20most%20other%20languages%20like%20Scandinavian%20and%20German%20chars%20would%20fall%20in%20under%20the%20same%20category.%20So%20over%20the%20course%20of" rel="nofollow" class="external" title="Email this via Hotmail">Email this via Hotmail</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://vevmedia.net/blog/sql-special-char-replacement/&amp;title=SQL+special+Char+replacement&amp;summary=I%20do%20myself%20run%20into%20this%20problem%20far%20to%20many%20times.%20Special%20Characters%20that%20end%20up%20being%20al%20jarbled%20up%20in%20my%20Database.%20I%20am%20talking%20about%20french%20special%20characters%20but%20I%20am%20sure%20that%20most%20other%20languages%20like%20Scandinavian%20and%20German%20chars%20would%20fall%20in%20under%20the%20same%20category.%20So%20over%20the%20course%20of&amp;source=vevmedia.net/blog" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22SQL%20special%20Char%20replacement%22&amp;body=Link: http://vevmedia.net/blog/sql-special-char-replacement/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%20do%20myself%20run%20into%20this%20problem%20far%20to%20many%20times.%20Special%20Characters%20that%20end%20up%20being%20al%20jarbled%20up%20in%20my%20Database.%20I%20am%20talking%20about%20french%20special%20characters%20but%20I%20am%20sure%20that%20most%20other%20languages%20like%20Scandinavian%20and%20German%20chars%20would%20fall%20in%20under%20the%20same%20category.%20So%20over%20the%20course%20of" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://vevmedia.net/blog/sql-special-char-replacement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
