/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function filter_accented_characters($stringWithAccentedCharacters) { $search = explode(",","ç,æ,Å“,á,é,Ã,ó,ú,à ,è,ì,ò,ù,ä,ë,ï,ö,ü,ÿ,â,ê,î,ô,û,Ã¥,e,i,ø,u"); $stringWithReplacedCharacters = $urlTitle = str_replace($search, $replace, $stringWithAccentedCharacters); return $stringWithReplacedCharacters; }
URL: replace-accented-characters