<?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: The perfect PHP clean url generator</title>
	<atom:link href="http://cubiq.org/the-perfect-php-clean-url-generator/feed" rel="self" type="application/rss+xml" />
	<link>http://cubiq.org/the-perfect-php-clean-url-generator</link>
	<description>Web and mobile development</description>
	<lastBuildDate>Mon, 06 Sep 2010 14:55:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: David</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-1#comment-5410</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 10 Aug 2010 14:32:16 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-5410</guid>
		<description>It&#039;s all well and good going one way, but you need to be able to go back the other way also.</description>
		<content:encoded><![CDATA[<p>It&#8217;s all well and good going one way, but you need to be able to go back the other way also.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-1#comment-1562</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Sat, 05 Jun 2010 19:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-1562</guid>
		<description>One problem throw in some asian characters or any high unicode language and nothing :(</description>
		<content:encoded><![CDATA[<p>One problem throw in some asian characters or any high unicode language and nothing <img src='http://cubiq.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wp-popular.com &#187; Blog Archive &#187; The perfect PHP clean url generator &#124; Matteo Spinelli&#8217;s Cubiq.org</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-1#comment-1557</link>
		<dc:creator>wp-popular.com &#187; Blog Archive &#187; The perfect PHP clean url generator &#124; Matteo Spinelli&#8217;s Cubiq.org</dc:creator>
		<pubDate>Sat, 05 Jun 2010 09:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-1557</guid>
		<description>[...] more here: The perfect PHP clean url generator &#124; Matteo Spinelli&#8217;s Cubiq.org Tags: result, [...]</description>
		<content:encoded><![CDATA[<p>[...] more here: The perfect PHP clean url generator | Matteo Spinelli&#8217;s Cubiq.org Tags: result, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc van Agteren</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-1#comment-677</link>
		<dc:creator>Marc van Agteren</dc:creator>
		<pubDate>Sat, 22 May 2010 10:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-677</guid>
		<description>I&#039;ve been experiencing problems with both the suggested solution by the author (some &quot;strange&quot; characters were not converted, which cutoff the result) and one in the comments by Weblap.ro (list of &quot;strange&quot; characters is not complete). So I decided to combine them and enriched the list of &quot;strange&quot; characters.

I also added a rtrim and ltrim, so you won&#039;t have an &quot;-&quot; at the beginning or the end when there is a space.

New function:

setlocale(LC_ALL, &#039;en_US.UTF8&#039;);

function toAscii($str, $replace=array(), $delimiter=&quot;-&quot;) {
	if( !empty($replace) ) {
		$str = str_replace((array)$replace, &#039; &#039;, $str);
	}
	
	$a = array(&#039;À&#039;,&#039;Á&#039;,&#039;Â&#039;,&#039;Ã&#039;,&#039;Ä&#039;,&#039;Å&#039;,&#039;Æ&#039;,&#039;Ç&#039;,&#039;È&#039;,&#039;É&#039;,&#039;Ê&#039;,&#039;Ë&#039;,&#039;Ì&#039;,&#039;Í&#039;,&#039;Î&#039;,&#039;Ï&#039;,&#039;Ð&#039;,&#039;Ñ&#039;,&#039;Ò&#039;,&#039;Ó&#039;,&#039;Ô&#039;,&#039;Õ&#039;,&#039;Ö&#039;,&#039;Ø&#039;,&#039;Ù&#039;,&#039;Ú&#039;,&#039;Û&#039;,&#039;Ü&#039;,&#039;Ý&#039;,&#039;ß&#039;,&#039;à&#039;,&#039;á&#039;,&#039;â&#039;,&#039;ã&#039;,&#039;ä&#039;,&#039;å&#039;,&#039;æ&#039;,&#039;ç&#039;,&#039;è&#039;,&#039;é&#039;,&#039;ê&#039;,&#039;ë&#039;,&#039;ì&#039;,&#039;í&#039;,&#039;î&#039;,&#039;ї&#039;,&#039;ñ&#039;,&#039;ò&#039;,&#039;ó&#039;,&#039;ô&#039;,&#039;õ&#039;,&#039;ö&#039;,&#039;ø&#039;,&#039;ù&#039;,&#039;ú&#039;,&#039;û&#039;,&#039;ü&#039;,&#039;ý&#039;,&#039;ÿ&#039;,&#039;Ā&#039;,&#039;ā&#039;,&#039;Ă&#039;,&#039;ă&#039;,&#039;Ą&#039;,&#039;ą&#039;,&#039;Ć&#039;,&#039;ć&#039;,&#039;Ĉ&#039;,&#039;ĉ&#039;,&#039;Ċ&#039;,&#039;ċ&#039;,&#039;Č&#039;,&#039;č&#039;,&#039;Ď&#039;,&#039;ď&#039;,&#039;Đ&#039;,&#039;đ&#039;,&#039;Ē&#039;,&#039;ē&#039;,&#039;Ĕ&#039;,&#039;ĕ&#039;,&#039;Ė&#039;,&#039;ė&#039;,&#039;Ę&#039;,&#039;ę&#039;,&#039;Ě&#039;,&#039;ě&#039;,&#039;ё&#039;,&#039;Ĝ&#039;,&#039;ĝ&#039;,&#039;Ğ&#039;,&#039;ğ&#039;,&#039;Ġ&#039;,&#039;ġ&#039;,&#039;Ģ&#039;,&#039;ģ&#039;,&#039;Ĥ&#039;,&#039;ĥ&#039;,&#039;Ħ&#039;,&#039;ħ&#039;,&#039;Ĩ&#039;,&#039;ĩ&#039;,&#039;Ī&#039;,&#039;ī&#039;,&#039;Ĭ&#039;,&#039;ĭ&#039;,&#039;Į&#039;,&#039;į&#039;,&#039;İ&#039;,&#039;ı&#039;,&#039;ї&#039;,&#039;Ĳ&#039;,&#039;ĳ&#039;,&#039;Ĵ&#039;,&#039;ĵ&#039;,&#039;Ķ&#039;,&#039;ķ&#039;,&#039;Ĺ&#039;,&#039;ĺ&#039;,&#039;Ļ&#039;,&#039;ļ&#039;,&#039;Ľ&#039;,&#039;ľ&#039;,&#039;Ŀ&#039;,&#039;ŀ&#039;,&#039;Ł&#039;,&#039;ł&#039;,&#039;Ń&#039;,&#039;ń&#039;,&#039;Ņ&#039;,&#039;ņ&#039;,&#039;Ň&#039;,&#039;ň&#039;,&#039;ŉ&#039;,&#039;Ō&#039;,&#039;ō&#039;,&#039;Ŏ&#039;,&#039;ŏ&#039;,&#039;Ő&#039;,&#039;ő&#039;,&#039;Œ&#039;,&#039;œ&#039;,&#039;Ŕ&#039;,&#039;ŕ&#039;,&#039;Ŗ&#039;,&#039;ŗ&#039;,&#039;Ř&#039;,&#039;ř&#039;,&#039;Ś&#039;,&#039;ś&#039;,&#039;Ŝ&#039;,&#039;ŝ&#039;,&#039;Ş&#039;,&#039;ş&#039;,&#039;Š&#039;,&#039;š&#039;,&#039;Ţ&#039;,&#039;ţ&#039;,&#039;Ť&#039;,&#039;ť&#039;,&#039;Ŧ&#039;,&#039;ŧ&#039;,&#039;Ũ&#039;,&#039;ũ&#039;,&#039;Ū&#039;,&#039;ū&#039;,&#039;Ŭ&#039;,&#039;ŭ&#039;,&#039;Ů&#039;,&#039;ů&#039;,&#039;Ű&#039;,&#039;ű&#039;,&#039;Ų&#039;,&#039;ų&#039;,&#039;Ŵ&#039;,&#039;ŵ&#039;,&#039;Ŷ&#039;,&#039;ŷ&#039;,&#039;Ÿ&#039;,&#039;Ź&#039;,&#039;ź&#039;,&#039;Ż&#039;,&#039;ż&#039;,&#039;Ž&#039;,&#039;ž&#039;,&#039;ſ&#039;,&#039;ƒ&#039;,&#039;Ơ&#039;,&#039;ơ&#039;,&#039;Ư&#039;,&#039;ư&#039;,&#039;Ǎ&#039;,&#039;ǎ&#039;,&#039;Ǐ&#039;,&#039;ǐ&#039;,&#039;Ǒ&#039;,&#039;ǒ&#039;,&#039;Ǔ&#039;,&#039;ǔ&#039;,&#039;Ǖ&#039;,&#039;ǖ&#039;,&#039;Ǘ&#039;,&#039;ǘ&#039;,&#039;Ǚ&#039;,&#039;ǚ&#039;,&#039;Ǜ&#039;,&#039;ǜ&#039;,&#039;ϋ&#039;,&#039;Ǻ&#039;,&#039;ǻ&#039;,&#039;Ǽ&#039;,&#039;ǽ&#039;,&#039;Ǿ&#039;,&#039;ǿ&#039;,&#039;΄&#039;,&#039;ό&#039;,&#039;Α&#039;,&#039;ϊ&#039;,&#039;ฺB&#039;,&#039;Η&#039;,&#039;Ḩ&#039;,&#039;ā&#039;,&#039;ţ&#039;,&#039;ḯ&#039;,&#039;ố&#039;,&#039;ạ&#039;,&#039;ẖ&#039;,&#039;ộ&#039;,&#039;Ḩ&#039;,&#039;ḩ&#039;,&#039;H̱&#039;);
	$b = array(&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;AE&#039;,&#039;C&#039;,&#039;E&#039;,&#039;E&#039;,&#039;E&#039;,&#039;E&#039;,&#039;I&#039;,&#039;I&#039;,&#039;I&#039;,&#039;I&#039;,&#039;D&#039;,&#039;N&#039;,&#039;O&#039;,&#039;O&#039;,&#039;O&#039;,&#039;O&#039;,&#039;O&#039;,&#039;O&#039;,&#039;U&#039;,&#039;U&#039;,&#039;U&#039;,&#039;U&#039;,&#039;Y&#039;,&#039;s&#039;,&#039;a&#039;,&#039;a&#039;,&#039;a&#039;,&#039;a&#039;,&#039;a&#039;,&#039;a&#039;,&#039;ae&#039;,&#039;c&#039;,&#039;e&#039;,&#039;e&#039;,&#039;e&#039;,&#039;e&#039;,&#039;i&#039;,&#039;i&#039;,&#039;i&#039;,&#039;i&#039;,&#039;n&#039;,&#039;o&#039;,&#039;o&#039;,&#039;o&#039;,&#039;o&#039;,&#039;o&#039;,&#039;o&#039;,&#039;u&#039;,&#039;u&#039;,&#039;u&#039;,&#039;u&#039;,&#039;y&#039;,&#039;y&#039;,&#039;A&#039;,&#039;a&#039;,&#039;A&#039;,&#039;a&#039;,&#039;A&#039;,&#039;a&#039;,&#039;C&#039;,&#039;c&#039;,&#039;C&#039;,&#039;c&#039;,&#039;C&#039;,&#039;c&#039;,&#039;C&#039;,&#039;c&#039;,&#039;D&#039;,&#039;d&#039;,&#039;D&#039;,&#039;d&#039;,&#039;E&#039;,&#039;e&#039;,&#039;E&#039;,&#039;e&#039;,&#039;E&#039;,&#039;e&#039;,&#039;E&#039;,&#039;e&#039;,&#039;E&#039;,&#039;e&#039;,&#039;e&#039;,&#039;G&#039;,&#039;g&#039;,&#039;G&#039;,&#039;g&#039;,&#039;G&#039;,&#039;g&#039;,&#039;G&#039;,&#039;g&#039;,&#039;H&#039;,&#039;h&#039;,&#039;H&#039;,&#039;h&#039;,&#039;I&#039;,&#039;i&#039;,&#039;I&#039;,&#039;i&#039;,&#039;I&#039;,&#039;i&#039;,&#039;I&#039;,&#039;i&#039;,&#039;I&#039;,&#039;i&#039;,&#039;i&#039;,&#039;IJ&#039;,&#039;ij&#039;,&#039;J&#039;,&#039;j&#039;,&#039;K&#039;,&#039;k&#039;,&#039;L&#039;,&#039;l&#039;,&#039;L&#039;,&#039;l&#039;,&#039;L&#039;,&#039;l&#039;,&#039;L&#039;,&#039;l&#039;,&#039;l&#039;,&#039;l&#039;,&#039;N&#039;,&#039;n&#039;,&#039;N&#039;,&#039;n&#039;,&#039;N&#039;,&#039;n&#039;,&#039;n&#039;,&#039;O&#039;,&#039;o&#039;,&#039;O&#039;,&#039;o&#039;,&#039;O&#039;,&#039;o&#039;,&#039;OE&#039;,&#039;oe&#039;,&#039;R&#039;,&#039;r&#039;,&#039;R&#039;,&#039;r&#039;,&#039;R&#039;,&#039;r&#039;,&#039;S&#039;,&#039;s&#039;,&#039;S&#039;,&#039;s&#039;,&#039;S&#039;,&#039;s&#039;,&#039;S&#039;,&#039;s&#039;,&#039;T&#039;,&#039;t&#039;,&#039;T&#039;,&#039;t&#039;,&#039;T&#039;,&#039;t&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;W&#039;,&#039;w&#039;,&#039;Y&#039;,&#039;y&#039;,&#039;Y&#039;,&#039;Z&#039;,&#039;z&#039;,&#039;Z&#039;,&#039;z&#039;,&#039;Z&#039;,&#039;z&#039;,&#039;s&#039;,&#039;f&#039;,&#039;O&#039;,&#039;o&#039;,&#039;U&#039;,&#039;u&#039;,&#039;A&#039;,&#039;a&#039;,&#039;I&#039;,&#039;i&#039;,&#039;O&#039;,&#039;o&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;u&#039;,&#039;A&#039;,&#039;a&#039;,&#039;AE&#039;,&#039;ae&#039;,&#039;O&#039;,&#039;o&#039;,&#039;&#039;,&#039;o&#039;,&#039;a&#039;,&#039;i&#039;,&#039;b&#039;,&#039;h&#039;,&#039;h&#039;,&#039;a&#039;,&#039;t&#039;,&#039;i&#039;,&#039;o&#039;,&#039;a&#039;,&#039;h&#039;,&#039;o&#039;,&#039;h&#039;,&#039;h&#039;,&#039;h&#039;);
	$clean = str_replace($a, $b, $str);

	$clean = iconv(&#039;UTF-8&#039;, &#039;ASCII//TRANSLIT&#039;, $clean);
	$clean = preg_replace(&quot;/[^a-zA-Z0-9\/_&#124;+ -]/&quot;, &#039;&#039;, $clean);
	$clean = strtolower(trim(ltrim(rtrim($clean)), &#039;-&#039;));
	$clean = preg_replace(&quot;/[\/_&#124;+ -]+/&quot;, $delimiter, $clean);

	return $clean;
}</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been experiencing problems with both the suggested solution by the author (some &#8220;strange&#8221; characters were not converted, which cutoff the result) and one in the comments by Weblap.ro (list of &#8220;strange&#8221; characters is not complete). So I decided to combine them and enriched the list of &#8220;strange&#8221; characters.</p>
<p>I also added a rtrim and ltrim, so you won&#8217;t have an &#8220;-&#8221; at the beginning or the end when there is a space.</p>
<p>New function:</p>
<p>setlocale(LC_ALL, &#8216;en_US.UTF8&#8242;);</p>
<p>function toAscii($str, $replace=array(), $delimiter=&#8221;-&#8221;) {<br />
	if( !empty($replace) ) {<br />
		$str = str_replace((array)$replace, &#8216; &#8216;, $str);<br />
	}</p>
<p>	$a = array(&#8216;À&#8217;,'Á&#8217;,'Â&#8217;,'Ã&#8217;,'Ä&#8217;,'Å&#8217;,'Æ&#8217;,'Ç&#8217;,'È&#8217;,'É&#8217;,'Ê&#8217;,'Ë&#8217;,'Ì&#8217;,'Í&#8217;,'Î&#8217;,'Ï&#8217;,'Ð&#8217;,'Ñ&#8217;,'Ò&#8217;,'Ó&#8217;,'Ô&#8217;,'Õ&#8217;,'Ö&#8217;,'Ø&#8217;,'Ù&#8217;,'Ú&#8217;,'Û&#8217;,'Ü&#8217;,'Ý&#8217;,'ß&#8217;,'à&#8217;,'á&#8217;,'â&#8217;,'ã&#8217;,'ä&#8217;,'å&#8217;,'æ&#8217;,'ç&#8217;,'è&#8217;,'é&#8217;,'ê&#8217;,'ë&#8217;,'ì&#8217;,'í&#8217;,'î&#8217;,'ї&#8217;,'ñ&#8217;,'ò&#8217;,'ó&#8217;,'ô&#8217;,'õ&#8217;,'ö&#8217;,'ø&#8217;,'ù&#8217;,'ú&#8217;,'û&#8217;,'ü&#8217;,'ý&#8217;,'ÿ&#8217;,'Ā&#8217;,'ā&#8217;,'Ă&#8217;,'ă&#8217;,'Ą&#8217;,'ą&#8217;,'Ć&#8217;,'ć&#8217;,'Ĉ&#8217;,'ĉ&#8217;,'Ċ&#8217;,'ċ&#8217;,'Č&#8217;,'č&#8217;,'Ď&#8217;,'ď&#8217;,'Đ&#8217;,'đ&#8217;,'Ē&#8217;,'ē&#8217;,'Ĕ&#8217;,'ĕ&#8217;,'Ė&#8217;,'ė&#8217;,'Ę&#8217;,'ę&#8217;,'Ě&#8217;,'ě&#8217;,'ё&#8217;,'Ĝ&#8217;,'ĝ&#8217;,'Ğ&#8217;,'ğ&#8217;,'Ġ&#8217;,'ġ&#8217;,'Ģ&#8217;,'ģ&#8217;,'Ĥ&#8217;,'ĥ&#8217;,'Ħ&#8217;,'ħ&#8217;,'Ĩ&#8217;,'ĩ&#8217;,'Ī&#8217;,'ī&#8217;,'Ĭ&#8217;,'ĭ&#8217;,'Į&#8217;,'į&#8217;,'İ&#8217;,'ı&#8217;,'ї&#8217;,'Ĳ&#8217;,'ĳ&#8217;,'Ĵ&#8217;,'ĵ&#8217;,'Ķ&#8217;,'ķ&#8217;,'Ĺ&#8217;,'ĺ&#8217;,'Ļ&#8217;,'ļ&#8217;,'Ľ&#8217;,'ľ&#8217;,'Ŀ&#8217;,'ŀ&#8217;,'Ł&#8217;,'ł&#8217;,'Ń&#8217;,'ń&#8217;,'Ņ&#8217;,'ņ&#8217;,'Ň&#8217;,'ň&#8217;,'ŉ&#8217;,'Ō&#8217;,'ō&#8217;,'Ŏ&#8217;,'ŏ&#8217;,'Ő&#8217;,'ő&#8217;,'Œ&#8217;,'œ&#8217;,'Ŕ&#8217;,'ŕ&#8217;,'Ŗ&#8217;,'ŗ&#8217;,'Ř&#8217;,'ř&#8217;,'Ś&#8217;,'ś&#8217;,'Ŝ&#8217;,'ŝ&#8217;,'Ş&#8217;,'ş&#8217;,'Š&#8217;,'š&#8217;,'Ţ&#8217;,'ţ&#8217;,'Ť&#8217;,'ť&#8217;,'Ŧ&#8217;,'ŧ&#8217;,'Ũ&#8217;,'ũ&#8217;,'Ū&#8217;,'ū&#8217;,'Ŭ&#8217;,'ŭ&#8217;,'Ů&#8217;,'ů&#8217;,'Ű&#8217;,'ű&#8217;,'Ų&#8217;,'ų&#8217;,'Ŵ&#8217;,'ŵ&#8217;,'Ŷ&#8217;,'ŷ&#8217;,'Ÿ&#8217;,'Ź&#8217;,'ź&#8217;,'Ż&#8217;,'ż&#8217;,'Ž&#8217;,'ž&#8217;,'ſ&#8217;,'ƒ&#8217;,'Ơ&#8217;,'ơ&#8217;,'Ư&#8217;,'ư&#8217;,'Ǎ&#8217;,'ǎ&#8217;,'Ǐ&#8217;,'ǐ&#8217;,'Ǒ&#8217;,'ǒ&#8217;,'Ǔ&#8217;,'ǔ&#8217;,'Ǖ&#8217;,'ǖ&#8217;,'Ǘ&#8217;,'ǘ&#8217;,'Ǚ&#8217;,'ǚ&#8217;,'Ǜ&#8217;,'ǜ&#8217;,'ϋ&#8217;,'Ǻ&#8217;,'ǻ&#8217;,'Ǽ&#8217;,'ǽ&#8217;,'Ǿ&#8217;,'ǿ&#8217;,'΄&#8217;,'ό&#8217;,'Α&#8217;,'ϊ&#8217;,'ฺB&#8217;,'Η&#8217;,'Ḩ&#8217;,'ā&#8217;,'ţ&#8217;,'ḯ&#8217;,'ố&#8217;,'ạ&#8217;,'ẖ&#8217;,'ộ&#8217;,'Ḩ&#8217;,'ḩ&#8217;,'H̱&#8217;);<br />
	$b = array(&#8216;A&#8217;,'A&#8217;,'A&#8217;,'A&#8217;,'A&#8217;,'A&#8217;,'AE&#8217;,'C&#8217;,'E&#8217;,'E&#8217;,'E&#8217;,'E&#8217;,'I&#8217;,'I&#8217;,'I&#8217;,'I&#8217;,'D&#8217;,'N&#8217;,'O&#8217;,'O&#8217;,'O&#8217;,'O&#8217;,'O&#8217;,'O&#8217;,'U&#8217;,'U&#8217;,'U&#8217;,'U&#8217;,'Y&#8217;,'s&#8217;,'a&#8217;,'a&#8217;,'a&#8217;,'a&#8217;,'a&#8217;,'a&#8217;,'ae&#8217;,'c&#8217;,'e&#8217;,'e&#8217;,'e&#8217;,'e&#8217;,'i&#8217;,'i&#8217;,'i&#8217;,'i&#8217;,'n&#8217;,'o&#8217;,'o&#8217;,'o&#8217;,'o&#8217;,'o&#8217;,'o&#8217;,'u&#8217;,'u&#8217;,'u&#8217;,'u&#8217;,'y&#8217;,'y&#8217;,'A&#8217;,'a&#8217;,'A&#8217;,'a&#8217;,'A&#8217;,'a&#8217;,'C&#8217;,'c&#8217;,'C&#8217;,'c&#8217;,'C&#8217;,'c&#8217;,'C&#8217;,'c&#8217;,'D&#8217;,'d&#8217;,'D&#8217;,'d&#8217;,'E&#8217;,'e&#8217;,'E&#8217;,'e&#8217;,'E&#8217;,'e&#8217;,'E&#8217;,'e&#8217;,'E&#8217;,'e&#8217;,'e&#8217;,'G&#8217;,'g&#8217;,'G&#8217;,'g&#8217;,'G&#8217;,'g&#8217;,'G&#8217;,'g&#8217;,'H&#8217;,'h&#8217;,'H&#8217;,'h&#8217;,'I&#8217;,'i&#8217;,'I&#8217;,'i&#8217;,'I&#8217;,'i&#8217;,'I&#8217;,'i&#8217;,'I&#8217;,'i&#8217;,'i&#8217;,'IJ&#8217;,'ij&#8217;,'J&#8217;,'j&#8217;,'K&#8217;,'k&#8217;,'L&#8217;,'l&#8217;,'L&#8217;,'l&#8217;,'L&#8217;,'l&#8217;,'L&#8217;,'l&#8217;,'l&#8217;,'l&#8217;,'N&#8217;,'n&#8217;,'N&#8217;,'n&#8217;,'N&#8217;,'n&#8217;,'n&#8217;,'O&#8217;,'o&#8217;,'O&#8217;,'o&#8217;,'O&#8217;,'o&#8217;,'OE&#8217;,'oe&#8217;,'R&#8217;,'r&#8217;,'R&#8217;,'r&#8217;,'R&#8217;,'r&#8217;,'S&#8217;,'s&#8217;,'S&#8217;,'s&#8217;,'S&#8217;,'s&#8217;,'S&#8217;,'s&#8217;,'T&#8217;,'t&#8217;,'T&#8217;,'t&#8217;,'T&#8217;,'t&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'W&#8217;,'w&#8217;,'Y&#8217;,'y&#8217;,'Y&#8217;,'Z&#8217;,'z&#8217;,'Z&#8217;,'z&#8217;,'Z&#8217;,'z&#8217;,'s&#8217;,'f&#8217;,'O&#8217;,'o&#8217;,'U&#8217;,'u&#8217;,'A&#8217;,'a&#8217;,'I&#8217;,'i&#8217;,'O&#8217;,'o&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'u&#8217;,'A&#8217;,'a&#8217;,'AE&#8217;,'ae&#8217;,'O&#8217;,'o&#8217;,&#8221;,&#8217;o',&#8217;a',&#8217;i',&#8217;b',&#8217;h',&#8217;h',&#8217;a',&#8217;t',&#8217;i',&#8217;o',&#8217;a',&#8217;h',&#8217;o',&#8217;h',&#8217;h',&#8217;h');<br />
	$clean = str_replace($a, $b, $str);</p>
<p>	$clean = iconv(&#8216;UTF-8&#8242;, &#8216;ASCII//TRANSLIT&#8217;, $clean);<br />
	$clean = preg_replace(&#8220;/[^a-zA-Z0-9\/_|+ -]/&#8221;, &#8221;, $clean);<br />
	$clean = strtolower(trim(ltrim(rtrim($clean)), &#8216;-&#8217;));<br />
	$clean = preg_replace(&#8220;/[\/_|+ -]+/&#8221;, $delimiter, $clean);</p>
<p>	return $clean;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darwin Naranjo</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-1#comment-337</link>
		<dc:creator>Darwin Naranjo</dc:creator>
		<pubDate>Fri, 19 Mar 2010 20:11:03 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-337</guid>
		<description>No me ha funcionado

function toAscii($str, $replace=array(), $delimiter=’-&#039;) {
if( !empty($replace) ) {
$str = str_replace((array)$replace, ‘ ‘, $str);
}

$clean = iconv(’UTF-8′, ‘ASCII//TRANSLIT’, $str);
$clean = preg_replace(”/[^a-zA-Z0-9\/_&#124;+ -]/”, ”, $clean);
$clean = strtolower(trim($clean, ‘-’));
$clean = preg_replace(”/[\/_&#124;+ -]+/”, $delimiter, $clean);

return $clean;
}
echo toAscii(’Necesito una piñata para mi cumpleaños’), ”;
RESULT: necesito-una-piata-para-mi-cumpleaos</description>
		<content:encoded><![CDATA[<p>No me ha funcionado</p>
<p>function toAscii($str, $replace=array(), $delimiter=’-&#8217;) {<br />
if( !empty($replace) ) {<br />
$str = str_replace((array)$replace, ‘ ‘, $str);<br />
}</p>
<p>$clean = iconv(’UTF-8′, ‘ASCII//TRANSLIT’, $str);<br />
$clean = preg_replace(”/[^a-zA-Z0-9\/_|+ -]/”, ”, $clean);<br />
$clean = strtolower(trim($clean, ‘-’));<br />
$clean = preg_replace(”/[\/_|+ -]+/”, $delimiter, $clean);</p>
<p>return $clean;<br />
}<br />
echo toAscii(’Necesito una piñata para mi cumpleaños’), ”;<br />
RESULT: necesito-una-piata-para-mi-cumpleaos</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weblap.ro</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-1#comment-336</link>
		<dc:creator>Weblap.ro</dc:creator>
		<pubDate>Sat, 06 Mar 2010 11:31:28 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-336</guid>
		<description>&lt;code&gt;function remove_accent($str)
{
  $a = array(&#039;À&#039;,&#039;Á&#039;,&#039;Â&#039;,&#039;Ã&#039;,&#039;Ä&#039;,&#039;Å&#039;,&#039;Æ&#039;,&#039;Ç&#039;,&#039;È&#039;,&#039;É&#039;,&#039;Ê&#039;,&#039;Ë&#039;,&#039;Ì&#039;,&#039;Í&#039;,&#039;Î&#039;,&#039;Ï&#039;,&#039;Ð&#039;,&#039;Ñ&#039;,&#039;Ò&#039;,&#039;Ó&#039;,&#039;Ô&#039;,&#039;Õ&#039;,&#039;Ö&#039;,&#039;Ø&#039;,&#039;Ù&#039;,&#039;Ú&#039;,&#039;Û&#039;,&#039;Ü&#039;,&#039;Ý&#039;,&#039;ß&#039;,&#039;à&#039;,&#039;á&#039;,&#039;â&#039;,&#039;ã&#039;,&#039;ä&#039;,&#039;å&#039;,&#039;æ&#039;,&#039;ç&#039;,&#039;è&#039;,&#039;é&#039;,&#039;ê&#039;,&#039;ë&#039;,&#039;ì&#039;,&#039;í&#039;,&#039;î&#039;,&#039;ï&#039;,&#039;ñ&#039;,&#039;ò&#039;,&#039;ó&#039;,&#039;ô&#039;,&#039;õ&#039;,&#039;ö&#039;,&#039;ø&#039;,&#039;ù&#039;,&#039;ú&#039;,&#039;û&#039;,&#039;ü&#039;,&#039;ý&#039;,&#039;ÿ&#039;,&#039;Ā&#039;,&#039;ā&#039;,&#039;Ă&#039;,&#039;ă&#039;,&#039;Ą&#039;,&#039;ą&#039;,&#039;Ć&#039;,&#039;ć&#039;,&#039;Ĉ&#039;,&#039;ĉ&#039;,&#039;Ċ&#039;,&#039;ċ&#039;,&#039;Č&#039;,&#039;č&#039;,&#039;Ď&#039;,&#039;ď&#039;,&#039;Đ&#039;,&#039;đ&#039;,&#039;Ē&#039;,&#039;ē&#039;,&#039;Ĕ&#039;,&#039;ĕ&#039;,&#039;Ė&#039;,&#039;ė&#039;,&#039;Ę&#039;,&#039;ę&#039;,&#039;Ě&#039;,&#039;ě&#039;,&#039;Ĝ&#039;,&#039;ĝ&#039;,&#039;Ğ&#039;,&#039;ğ&#039;,&#039;Ġ&#039;,&#039;ġ&#039;,&#039;Ģ&#039;,&#039;ģ&#039;,&#039;Ĥ&#039;,&#039;ĥ&#039;,&#039;Ħ&#039;,&#039;ħ&#039;,&#039;Ĩ&#039;,&#039;ĩ&#039;,&#039;Ī&#039;,&#039;ī&#039;,&#039;Ĭ&#039;,&#039;ĭ&#039;,&#039;Į&#039;,&#039;į&#039;,&#039;İ&#039;,&#039;ı&#039;,&#039;Ĳ&#039;,&#039;ĳ&#039;,&#039;Ĵ&#039;,&#039;ĵ&#039;,&#039;Ķ&#039;,&#039;ķ&#039;,&#039;Ĺ&#039;,&#039;ĺ&#039;,&#039;Ļ&#039;,&#039;ļ&#039;,&#039;Ľ&#039;,&#039;ľ&#039;,&#039;Ŀ&#039;,&#039;ŀ&#039;,&#039;Ł&#039;,&#039;ł&#039;,&#039;Ń&#039;,&#039;ń&#039;,&#039;Ņ&#039;,&#039;ņ&#039;,&#039;Ň&#039;,&#039;ň&#039;,&#039;ŉ&#039;,&#039;Ō&#039;,&#039;ō&#039;,&#039;Ŏ&#039;,&#039;ŏ&#039;,&#039;Ő&#039;,&#039;ő&#039;,&#039;Œ&#039;,&#039;œ&#039;,&#039;Ŕ&#039;,&#039;ŕ&#039;,&#039;Ŗ&#039;,&#039;ŗ&#039;,&#039;Ř&#039;,&#039;ř&#039;,&#039;Ś&#039;,&#039;ś&#039;,&#039;Ŝ&#039;,&#039;ŝ&#039;,&#039;Ş&#039;,&#039;ş&#039;,&#039;Š&#039;,&#039;š&#039;,&#039;Ţ&#039;,&#039;ţ&#039;,&#039;Ť&#039;,&#039;ť&#039;,&#039;Ŧ&#039;,&#039;ŧ&#039;,&#039;Ũ&#039;,&#039;ũ&#039;,&#039;Ū&#039;,&#039;ū&#039;,&#039;Ŭ&#039;,&#039;ŭ&#039;,&#039;Ů&#039;,&#039;ů&#039;,&#039;Ű&#039;,&#039;ű&#039;,&#039;Ų&#039;,&#039;ų&#039;,&#039;Ŵ&#039;,&#039;ŵ&#039;,&#039;Ŷ&#039;,&#039;ŷ&#039;,&#039;Ÿ&#039;,&#039;Ź&#039;,&#039;ź&#039;,&#039;Ż&#039;,&#039;ż&#039;,&#039;Ž&#039;,&#039;ž&#039;,&#039;ſ&#039;,&#039;ƒ&#039;,&#039;Ơ&#039;,&#039;ơ&#039;,&#039;Ư&#039;,&#039;ư&#039;,&#039;Ǎ&#039;,&#039;ǎ&#039;,&#039;Ǐ&#039;,&#039;ǐ&#039;,&#039;Ǒ&#039;,&#039;ǒ&#039;,&#039;Ǔ&#039;,&#039;ǔ&#039;,&#039;Ǖ&#039;,&#039;ǖ&#039;,&#039;Ǘ&#039;,&#039;ǘ&#039;,&#039;Ǚ&#039;,&#039;ǚ&#039;,&#039;Ǜ&#039;,&#039;ǜ&#039;,&#039;Ǻ&#039;,&#039;ǻ&#039;,&#039;Ǽ&#039;,&#039;ǽ&#039;,&#039;Ǿ&#039;,&#039;ǿ&#039;);
  $b = array(&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;AE&#039;,&#039;C&#039;,&#039;E&#039;,&#039;E&#039;,&#039;E&#039;,&#039;E&#039;,&#039;I&#039;,&#039;I&#039;,&#039;I&#039;,&#039;I&#039;,&#039;D&#039;,&#039;N&#039;,&#039;O&#039;,&#039;O&#039;,&#039;O&#039;,&#039;O&#039;,&#039;O&#039;,&#039;O&#039;,&#039;U&#039;,&#039;U&#039;,&#039;U&#039;,&#039;U&#039;,&#039;Y&#039;,&#039;s&#039;,&#039;a&#039;,&#039;a&#039;,&#039;a&#039;,&#039;a&#039;,&#039;a&#039;,&#039;a&#039;,&#039;ae&#039;,&#039;c&#039;,&#039;e&#039;,&#039;e&#039;,&#039;e&#039;,&#039;e&#039;,&#039;i&#039;,&#039;i&#039;,&#039;i&#039;,&#039;i&#039;,&#039;n&#039;,&#039;o&#039;,&#039;o&#039;,&#039;o&#039;,&#039;o&#039;,&#039;o&#039;,&#039;o&#039;,&#039;u&#039;,&#039;u&#039;,&#039;u&#039;,&#039;u&#039;,&#039;y&#039;,&#039;y&#039;,&#039;A&#039;,&#039;a&#039;,&#039;A&#039;,&#039;a&#039;,&#039;A&#039;,&#039;a&#039;,&#039;C&#039;,&#039;c&#039;,&#039;C&#039;,&#039;c&#039;,&#039;C&#039;,&#039;c&#039;,&#039;C&#039;,&#039;c&#039;,&#039;D&#039;,&#039;d&#039;,&#039;D&#039;,&#039;d&#039;,&#039;E&#039;,&#039;e&#039;,&#039;E&#039;,&#039;e&#039;,&#039;E&#039;,&#039;e&#039;,&#039;E&#039;,&#039;e&#039;,&#039;E&#039;,&#039;e&#039;,&#039;G&#039;,&#039;g&#039;,&#039;G&#039;,&#039;g&#039;,&#039;G&#039;,&#039;g&#039;,&#039;G&#039;,&#039;g&#039;,&#039;H&#039;,&#039;h&#039;,&#039;H&#039;,&#039;h&#039;,&#039;I&#039;,&#039;i&#039;,&#039;I&#039;,&#039;i&#039;,&#039;I&#039;,&#039;i&#039;,&#039;I&#039;,&#039;i&#039;,&#039;I&#039;,&#039;i&#039;,&#039;IJ&#039;,&#039;ij&#039;,&#039;J&#039;,&#039;j&#039;,&#039;K&#039;,&#039;k&#039;,&#039;L&#039;,&#039;l&#039;,&#039;L&#039;,&#039;l&#039;,&#039;L&#039;,&#039;l&#039;,&#039;L&#039;,&#039;l&#039;,&#039;l&#039;,&#039;l&#039;,&#039;N&#039;,&#039;n&#039;,&#039;N&#039;,&#039;n&#039;,&#039;N&#039;,&#039;n&#039;,&#039;n&#039;,&#039;O&#039;,&#039;o&#039;,&#039;O&#039;,&#039;o&#039;,&#039;O&#039;,&#039;o&#039;,&#039;OE&#039;,&#039;oe&#039;,&#039;R&#039;,&#039;r&#039;,&#039;R&#039;,&#039;r&#039;,&#039;R&#039;,&#039;r&#039;,&#039;S&#039;,&#039;s&#039;,&#039;S&#039;,&#039;s&#039;,&#039;S&#039;,&#039;s&#039;,&#039;S&#039;,&#039;s&#039;,&#039;T&#039;,&#039;t&#039;,&#039;T&#039;,&#039;t&#039;,&#039;T&#039;,&#039;t&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;W&#039;,&#039;w&#039;,&#039;Y&#039;,&#039;y&#039;,&#039;Y&#039;,&#039;Z&#039;,&#039;z&#039;,&#039;Z&#039;,&#039;z&#039;,&#039;Z&#039;,&#039;z&#039;,&#039;s&#039;,&#039;f&#039;,&#039;O&#039;,&#039;o&#039;,&#039;U&#039;,&#039;u&#039;,&#039;A&#039;,&#039;a&#039;,&#039;I&#039;,&#039;i&#039;,&#039;O&#039;,&#039;o&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;A&#039;,&#039;a&#039;,&#039;AE&#039;,&#039;ae&#039;,&#039;O&#039;,&#039;o&#039;);
  return str_replace($a, $b, $str);
}&lt;/code&gt;

&lt;code&gt;function post_slug($str)
{
  return strtolower(preg_replace(array(&#039;/[^a-zA-Z0-9 -]/&#039;, &#039;/[ -]+/&#039;, &#039;/^-&#124;-$/&#039;), array(&#039;&#039;, &#039;-&#039;, &#039;&#039;), remove_accent($str)));
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code>function remove_accent($str)<br />
{<br />
  $a = array('À','Á','Â','Ã','Ä','Å','Æ','Ç','È','É','Ê','Ë','Ì','Í','Î','Ï','Ð','Ñ','Ò','Ó','Ô','Õ','Ö','Ø','Ù','Ú','Û','Ü','Ý','ß','à','á','â','ã','ä','å','æ','ç','è','é','ê','ë','ì','í','î','ï','ñ','ò','ó','ô','õ','ö','ø','ù','ú','û','ü','ý','ÿ','Ā','ā','Ă','ă','Ą','ą','Ć','ć','Ĉ','ĉ','Ċ','ċ','Č','č','Ď','ď','Đ','đ','Ē','ē','Ĕ','ĕ','Ė','ė','Ę','ę','Ě','ě','Ĝ','ĝ','Ğ','ğ','Ġ','ġ','Ģ','ģ','Ĥ','ĥ','Ħ','ħ','Ĩ','ĩ','Ī','ī','Ĭ','ĭ','Į','į','İ','ı','Ĳ','ĳ','Ĵ','ĵ','Ķ','ķ','Ĺ','ĺ','Ļ','ļ','Ľ','ľ','Ŀ','ŀ','Ł','ł','Ń','ń','Ņ','ņ','Ň','ň','ŉ','Ō','ō','Ŏ','ŏ','Ő','ő','Œ','œ','Ŕ','ŕ','Ŗ','ŗ','Ř','ř','Ś','ś','Ŝ','ŝ','Ş','ş','Š','š','Ţ','ţ','Ť','ť','Ŧ','ŧ','Ũ','ũ','Ū','ū','Ŭ','ŭ','Ů','ů','Ű','ű','Ų','ų','Ŵ','ŵ','Ŷ','ŷ','Ÿ','Ź','ź','Ż','ż','Ž','ž','ſ','ƒ','Ơ','ơ','Ư','ư','Ǎ','ǎ','Ǐ','ǐ','Ǒ','ǒ','Ǔ','ǔ','Ǖ','ǖ','Ǘ','ǘ','Ǚ','ǚ','Ǜ','ǜ','Ǻ','ǻ','Ǽ','ǽ','Ǿ','ǿ');<br />
  $b = array('A','A','A','A','A','A','AE','C','E','E','E','E','I','I','I','I','D','N','O','O','O','O','O','O','U','U','U','U','Y','s','a','a','a','a','a','a','ae','c','e','e','e','e','i','i','i','i','n','o','o','o','o','o','o','u','u','u','u','y','y','A','a','A','a','A','a','C','c','C','c','C','c','C','c','D','d','D','d','E','e','E','e','E','e','E','e','E','e','G','g','G','g','G','g','G','g','H','h','H','h','I','i','I','i','I','i','I','i','I','i','IJ','ij','J','j','K','k','L','l','L','l','L','l','L','l','l','l','N','n','N','n','N','n','n','O','o','O','o','O','o','OE','oe','R','r','R','r','R','r','S','s','S','s','S','s','S','s','T','t','T','t','T','t','U','u','U','u','U','u','U','u','U','u','U','u','W','w','Y','y','Y','Z','z','Z','z','Z','z','s','f','O','o','U','u','A','a','I','i','O','o','U','u','U','u','U','u','U','u','U','u','A','a','AE','ae','O','o');<br />
  return str_replace($a, $b, $str);<br />
}</code></p>
<p><code>function post_slug($str)<br />
{<br />
  return strtolower(preg_replace(array('/[^a-zA-Z0-9 -]/', '/[ -]+/', '/^-|-$/'), array('', '-', ''), remove_accent($str)));<br />
}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-1#comment-335</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Sat, 06 Feb 2010 05:54:55 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-335</guid>
		<description>Thanks for this!</description>
		<content:encoded><![CDATA[<p>Thanks for this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slug_me &#171; b4r7</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-1#comment-334</link>
		<dc:creator>slug_me &#171; b4r7</dc:creator>
		<pubDate>Wed, 06 Jan 2010 16:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-334</guid>
		<description>[...] slug_me  // a better (?) version of toAscii function by Matteo Spinelli [...]</description>
		<content:encoded><![CDATA[<p>[...] slug_me  // a better (?) version of toAscii function by Matteo Spinelli [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Ottolini</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-1#comment-333</link>
		<dc:creator>Marco Ottolini</dc:creator>
		<pubDate>Tue, 22 Dec 2009 17:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-333</guid>
		<description>Thank you!
really helpful</description>
		<content:encoded><![CDATA[<p>Thank you!<br />
really helpful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jashk</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-1#comment-332</link>
		<dc:creator>jashk</dc:creator>
		<pubDate>Thu, 10 Dec 2009 20:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-332</guid>
		<description>Exelent, ist very usefull.

tanks, +1 karma.</description>
		<content:encoded><![CDATA[<p>Exelent, ist very usefull.</p>
<p>tanks, +1 karma.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced)

Served from: cubiq.org @ 2010-09-06 20:00:58 -->