function encoder($texte) { $texte = html_entity_decode($texte, ENT_COMPAT, 'UTF-8'); $texte = htmlentities($texte, ENT_COMPAT, 'ISO-8859-1'); return $texte; }