<?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: Sacar acentos y caracteres raros con PHP</title>
	<atom:link href="http://www.ajpl.com.ar/blog/2009/07/sacar-acentos-y-caracteres-raros-con-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ajpl.com.ar/blog/2009/07/sacar-acentos-y-caracteres-raros-con-php/</link>
	<description>Ariel Jesus Pozo Lazaro</description>
	<lastBuildDate>Mon, 31 May 2010 14:01:43 -0300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rodrigo</title>
		<link>http://www.ajpl.com.ar/blog/2009/07/sacar-acentos-y-caracteres-raros-con-php/comment-page-1/#comment-104</link>
		<dc:creator>rodrigo</dc:creator>
		<pubDate>Mon, 31 May 2010 14:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajpl.com.ar/blog/?p=113#comment-104</guid>
		<description>Una forma mas abreviada seria:
function elimina_acentos($text){
        $text=utf8_decode($text);
        $tofind = utf8_decode(&#039;ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ&#039;);
        $replac = &#039;AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn&#039;;
        $text= strtr($text, $tofind, $replac);
        $text = preg_replace(&quot;/[^A-Za-z0-9 _]/&quot;,&quot;&quot;,$text);
        return $text;
}</description>
		<content:encoded><![CDATA[<p>Una forma mas abreviada seria:<br />
function elimina_acentos($text){<br />
        $text=utf8_decode($text);<br />
        $tofind = utf8_decode(&#8217;ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ&#8217;);<br />
        $replac = &#8216;AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn&#8217;;<br />
        $text= strtr($text, $tofind, $replac);<br />
        $text = preg_replace(&#8221;/[^A-Za-z0-9 _]/&#8221;,&#8221;",$text);<br />
        return $text;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrique Barchiesi</title>
		<link>http://www.ajpl.com.ar/blog/2009/07/sacar-acentos-y-caracteres-raros-con-php/comment-page-1/#comment-86</link>
		<dc:creator>Enrique Barchiesi</dc:creator>
		<pubDate>Fri, 12 Mar 2010 08:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajpl.com.ar/blog/?p=113#comment-86</guid>
		<description>Esta función completaría los caracteres especiales. 
Espero les sirva . Gracias

function _only_chars($text){
	$text = ereg_replace(&quot;[áàâãª]&quot;,&quot;a&quot;,$text);
	$text = ereg_replace(&quot;[ÁÀÂÃ]&quot;,&quot;A&quot;,$text);
	$text = ereg_replace(&quot;[ÍÌÎ]&quot;,&quot;I&quot;,$text);
	$text = ereg_replace(&quot;[íìî]&quot;,&quot;i&quot;,$text);
	$text = ereg_replace(&quot;[éèê]&quot;,&quot;e&quot;,$text);
	$text = ereg_replace(&quot;[ÉÈÊ]&quot;,&quot;E&quot;,$text);
	$text = ereg_replace(&quot;[óòôõº]&quot;,&quot;o&quot;,$text);
	$text = ereg_replace(&quot;[ÓÒÔÕ]&quot;,&quot;O&quot;,$text);
	$text = ereg_replace(&quot;[úùû]&quot;,&quot;u&quot;,$text);
	$text = ereg_replace(&quot;[ÚÙÛ]&quot;,&quot;U&quot;,$text);
	$text = str_replace(&quot;ç&quot;,&quot;c&quot;,$text);
	$text = str_replace(&quot;Ç&quot;,&quot;C&quot;,$text);
	$text = str_replace(&quot;ñ&quot;,&quot;n&quot;,$text);
	$text = str_replace(&quot;Ñ&quot;,&quot;N&quot;,$text);

	$text = preg_replace(&quot;/[^A-Za-z0-9 _\.]/&quot;,&quot;&quot;,$text); 
	return $text;	
}</description>
		<content:encoded><![CDATA[<p>Esta función completaría los caracteres especiales.<br />
Espero les sirva . Gracias</p>
<p>function _only_chars($text){<br />
	$text = ereg_replace(&#8221;[áàâãª]&#8220;,&#8221;a&#8221;,$text);<br />
	$text = ereg_replace(&#8221;[ÁÀÂÃ]&#8220;,&#8221;A&#8221;,$text);<br />
	$text = ereg_replace(&#8221;[ÍÌÎ]&#8220;,&#8221;I&#8221;,$text);<br />
	$text = ereg_replace(&#8221;[íìî]&#8220;,&#8221;i&#8221;,$text);<br />
	$text = ereg_replace(&#8221;[éèê]&#8220;,&#8221;e&#8221;,$text);<br />
	$text = ereg_replace(&#8221;[ÉÈÊ]&#8220;,&#8221;E&#8221;,$text);<br />
	$text = ereg_replace(&#8221;[óòôõº]&#8220;,&#8221;o&#8221;,$text);<br />
	$text = ereg_replace(&#8221;[ÓÒÔÕ]&#8220;,&#8221;O&#8221;,$text);<br />
	$text = ereg_replace(&#8221;[úùû]&#8220;,&#8221;u&#8221;,$text);<br />
	$text = ereg_replace(&#8221;[ÚÙÛ]&#8220;,&#8221;U&#8221;,$text);<br />
	$text = str_replace(&#8221;ç&#8221;,&#8221;c&#8221;,$text);<br />
	$text = str_replace(&#8221;Ç&#8221;,&#8221;C&#8221;,$text);<br />
	$text = str_replace(&#8221;ñ&#8221;,&#8221;n&#8221;,$text);<br />
	$text = str_replace(&#8221;Ñ&#8221;,&#8221;N&#8221;,$text);</p>
<p>	$text = preg_replace(&#8221;/[^A-Za-z0-9 _\.]/&#8221;,&#8221;",$text);<br />
	return $text;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miguel</title>
		<link>http://www.ajpl.com.ar/blog/2009/07/sacar-acentos-y-caracteres-raros-con-php/comment-page-1/#comment-83</link>
		<dc:creator>Miguel</dc:creator>
		<pubDate>Thu, 17 Sep 2009 15:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajpl.com.ar/blog/?p=113#comment-83</guid>
		<description>Buena aportación aunque le faltaria unas lineas mas con caracteres como interrogacion, comillas, menor que etc etc 

saludos</description>
		<content:encoded><![CDATA[<p>Buena aportación aunque le faltaria unas lineas mas con caracteres como interrogacion, comillas, menor que etc etc </p>
<p>saludos</p>
]]></content:encoded>
	</item>
</channel>
</rss>
