<?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: Oracle Function:Translate &amp; Replace</title>
	<atom:link href="http://kirtandesai.com/write/index.php/2007/02/28/remove-special-characters-from-a-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/</link>
	<description></description>
	<lastBuildDate>Tue, 23 Aug 2011 14:40:20 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
	<item>
		<title>By: Deepak Toppinkatti</title>
		<link>http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/comment-page-1/#comment-16724</link>
		<dc:creator>Deepak Toppinkatti</dc:creator>
		<pubDate>Thu, 12 Nov 2009 05:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/#comment-16724</guid>
		<description>Thanks dude!!!!!!!!!!!!!</description>
		<content:encoded><![CDATA[<p>Thanks dude!!!!!!!!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi</title>
		<link>http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/comment-page-1/#comment-8353</link>
		<dc:creator>Ravi</dc:creator>
		<pubDate>Thu, 30 Jul 2009 13:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/#comment-8353</guid>
		<description>Kirtan,
 
I have a similar issue to remove the UNICODE character.

In my RDF file, i should accomidate it in such a way that what ever currupt characters (Especially UNICODE symbols) comes in between the email_address , it has to change to its subsequent character like this...

The output of ñ should be n.  This is a kind of example.. 
 
When the input value is &#039;john.muñoz@yahoo.com&#039; it should return &#039;john.munoz@yahoo.com&#039;
 
I have tried  using the following functions but the output still shows me the unicode symbol... 
 
select UNISTR(&#039;john.muñoz@yahoo.com&#039;) from dual
 
select remove_special_chars(&#039;john.muñoz@yahoo.com&#039;) from dual
 
Select translate(trim(email_address),&#039;1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ WE8ISO8859P1 ~!#$%^&amp;*()_+}{&quot;:?&gt;&lt;`=][&#039;&#039;&#039;&#039;;/,&#039;,&#039;1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ&#039;) from per_people_f
where employee_number = 3951
 
select CONVERT(&#039;john.muñoz@yahoo.com&#039;,&#039;US7ASCII&#039;) from dual
 
select regexp_replace(&#039;john.muñoz@yahoo.com&#039;, &#039;[^-.@,a-z,A-Z,[:space:]]&#039;) from dual;
 
If you have any ideas.. please let me know...
Thanks in advance
Ravi.</description>
		<content:encoded><![CDATA[<p>Kirtan,</p>
<p>I have a similar issue to remove the UNICODE character.</p>
<p>In my RDF file, i should accomidate it in such a way that what ever currupt characters (Especially UNICODE symbols) comes in between the email_address , it has to change to its subsequent character like this&#8230;</p>
<p>The output of ñ should be n.  This is a kind of example.. </p>
<p>When the input value is &#8216;john.muñoz@yahoo.com&#8217; it should return &#8216;john.munoz@yahoo.com&#8217;</p>
<p>I have tried  using the following functions but the output still shows me the unicode symbol&#8230; </p>
<p>select UNISTR(&#8216;john.muñoz@yahoo.com&#8217;) from dual</p>
<p>select remove_special_chars(&#8216;john.muñoz@yahoo.com&#8217;) from dual</p>
<p>Select translate(trim(email_address),&#8217;1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ WE8ISO8859P1 ~!#$%^&amp;*()_+}{&#8220;:?&gt;&lt;`=]['''';/,','1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ') from per_people_f<br />
where employee_number = 3951</p>
<p>select CONVERT('john.muñoz@yahoo.com','US7ASCII') from dual</p>
<p>select regexp_replace('john.muñoz@yahoo.com', '[^-.@,a-z,A-Z,[:space:]]&#8217;) from dual;</p>
<p>If you have any ideas.. please let me know&#8230;<br />
Thanks in advance<br />
Ravi.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajeev</title>
		<link>http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/comment-page-1/#comment-3969</link>
		<dc:creator>Rajeev</dc:creator>
		<pubDate>Wed, 03 Jun 2009 14:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/#comment-3969</guid>
		<description>USE regexp_replace oracle function</description>
		<content:encoded><![CDATA[<p>USE regexp_replace oracle function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirtan Desai</title>
		<link>http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/comment-page-1/#comment-24</link>
		<dc:creator>Kirtan Desai</dc:creator>
		<pubDate>Sun, 04 Mar 2007 15:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/#comment-24</guid>
		<description>Jonathan,

I created the function so that the &#039;list&#039; of unwanted characters can be maintained cleanly. If you use TRANSLATE in your SQL statement, you would have to keep that list available for all developers at all times. To me it was a bit messy. BUT, I do see the point of not using REPLACE. I have updated my post above.

Kirtan</description>
		<content:encoded><![CDATA[<p>Jonathan,</p>
<p>I created the function so that the &#8216;list&#8217; of unwanted characters can be maintained cleanly. If you use TRANSLATE in your SQL statement, you would have to keep that list available for all developers at all times. To me it was a bit messy. BUT, I do see the point of not using REPLACE. I have updated my post above.</p>
<p>Kirtan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/comment-page-1/#comment-23</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Sat, 03 Mar 2007 19:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/#comment-23</guid>
		<description>Hi Kirtan

You don&#039;t need to create a PL/SQL function or use REPLACE.  TRANSLATE will do the job in one if you put the dummy character in the third argument as the first character in the second argument, e.g.:

TRANSLATE( in_string, CHR(0) &#124;&#124; remove_chars, CHR(0) )

I&#039;ve used CHR(0) but any character would do, even space.

Regards

Jonathan</description>
		<content:encoded><![CDATA[<p>Hi Kirtan</p>
<p>You don&#8217;t need to create a PL/SQL function or use REPLACE.  TRANSLATE will do the job in one if you put the dummy character in the third argument as the first character in the second argument, e.g.:</p>
<p>TRANSLATE( in_string, CHR(0) || remove_chars, CHR(0) )</p>
<p>I&#8217;ve used CHR(0) but any character would do, even space.</p>
<p>Regards</p>
<p>Jonathan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neha</title>
		<link>http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/comment-page-1/#comment-22</link>
		<dc:creator>Neha</dc:creator>
		<pubDate>Wed, 28 Feb 2007 21:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://kirtandesai.com/write/2007/02/28/remove-special-characters-from-a-string/#comment-22</guid>
		<description>Nice solution...i dont need this right now but will keep this in my knowledge base...

Thank you !
Neha</description>
		<content:encoded><![CDATA[<p>Nice solution&#8230;i dont need this right now but will keep this in my knowledge base&#8230;</p>
<p>Thank you !<br />
Neha</p>
]]></content:encoded>
	</item>
</channel>
</rss>

