1 2 3 4
<?php $str = "àéè"; $html = htmlentities($str, ENT_COMPAT | ENT_HTML401, "UTF-8"); echo $html;
1
àéè