<?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>Sat, 07 Jan 2012 03:42:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</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>
]]></content:encoded>
			<wfw:commentRss>http://vevmedia.net/blog/sql-special-char-replacement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

