Sto cercando di convertire i caratteri come:Come convertire caratteri speciali in caratteri normali?
ë, ä, ï, ö, etc.
Per caratteri normali come:
e, a, i, o, etc.
Qual è il modo migliore per farlo? Ho provato molte cose, come preg_replace e str_replace.
Qualcuno può darmi una mano?
- EDIT -
Quello che ho cercato, era:
$ts = array("[À-Å]","Æ","Ç","[È-Ë]","/[Ì-Ï]/","/Ð/","/Ñ/","/[Ò-ÖØ]/","/×/","/[Ù-Ü]/","/[Ý-ß]/","/[à-å]/","/æ/","/ç/","/[è-ë]/","/[ì-ï]/","/ð/","/ñ/","/[ò-öø]/","/÷/","/[ù-ü]/","/[ý-ÿ]/");
$tn = array("A","AE","C","E","I","D","N","O","X","U","Y","a","ae","c","e","i","d","n","o","x","u","y");
$title = preg_replace($ts, $tn, $text);
possibile duplicato del [PHP Transliteration] (http://stackoverflow.com/questions/1284535/php-transliteration) – Quentin
Non hai mostrare ciò che si è tentato :( – Evert
caratteri Il termine corretto qui sarebbe accentati Caratteri speciali sono cose come $ # @/\ ecc. – lgaud