Re: Replacing accented characters?
| From: | Ross McKay | Date: | Wed, 27 Jan 2010 23:25:00 +0000 |
| Subject: | Re: Replacing accented characters? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301579@lists.php.net to get a copy of this message | ||
On Wed, 27 Jan 2010 16:55:46 -0600, Skip Evans wrote:
>I'm looking for recommendations on how to replace accented
>characters, like e and u with those two little dots above
>them, with the regular e and u characters.
$newText = iconv('UTF-8', 'ASCII//TRANSLIT', $text);
But ensure you have set your locale properly.
http://au.php.net/manual/en/function.iconv.php
--
Ross McKay, Toronto NSW Australia
"All we are saying
Is give peas a chance" - SeedSavers