RE: [PHP] Converting accented characters or numeric equivalents to non-accented

From: Date: Sat, 18 Jan 2003 18:18:08 +0000
Subject: RE: [PHP] Converting accented characters or numeric equivalents to non-accented
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132115@lists.php.net to get a copy of this message
At 19:11 18.01.2003, Ian M. Evans said: --------------------[snip]-------------------- >Thanks for the response. I guess I wasn't too clear in my original post. I'm >not looking to turn an accented letter into its numeric equivalent, I'm >looking to strip the accent so that Renée Zellweger becomes Renee Zellweger. --------------------[snip]-------------------- $chars_in = array('Á',''á','É','é'); // you get it $chars_out = array('A','a','E','e'); // this too preg_replace($chars_in, $chars_out, $string_to_parse); -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#132115) next »