I am trying to replace accented characters with the normal replacements. Below is what I am currently doing.
$string = \"Éric Cantona\"; $strict = st
I found this way to be a good one, without having to worry too much about charsets and arrays:
function replace_accents($str) { $str = htmlentities($str, ENT_COMPAT, "UTF-8"); $str = preg_replace('/&([a-zA-Z])(uml|acute|grave|circ|tilde);/','$1',$str); return html_entity_decode($str); }