Codice PHP:
$string ='éèçààùàòç';

echo 
htmlentities($string);