Re: Re: Removing nonlatin characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/29/05, Rene Brehmer <plasticbunny@xxxxxxxxxxxxxx> wrote:> I think you mean something like this:> > function stripAccents($string) {>   $returnString = strtr($string,>       'àáâãäçèéêëìíîïñòóôõöšùúûüýÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖŠÙÚÛÜÝ',> 'aaaaaceeeeiiiinooooosuuuuyAAAAACEEEEIIIINOOOOOSUUUUY');>   $returnString => str_replace('æ','ae',str_replace('Æ','AE',$returnString));>   $returnString => str_replace('ø','oe',str_replace('Ø','OE',$returnString));>   $returnString = str_replace('ß','ss',$returnString);>   return $returnString;> }> > This function is part using code once posted on this list, part my own> creation.> > HTH> > Rene> > --> Rene Brehmer> aka Metalbunny> > We have nothing to fear from free speech and free information on the> Internet, but pop-up advertising!> > http://metalbunny.net/> My little mess of things...> 
Thank you Rene. Does this approach have any special advantages overrecode_string?
Dotan Cohenhttp://song-lirics.com/sl/artist/167/the-doors-lirics.phpThe Doors Lirics

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux