作者:Allen | 来源:互联网 | 2014-03-27 11:39
phphtml实体字符的转换php有什么函数能把html实体符号é转换成é?php那几个函数都试过了,不行呀。,PHPcodeechomb_convert_encoding("&
php html实体字符的转换
php有什么函数能把html实体符号é转换成é?
php那几个函数都试过了,不行呀。
------解决方案--------------------PHP code
echo mb_convert_encoding("é", "UTF-8", "HTML-ENTITIES");
//é
------解决方案--------------------
$text = mb_convert_encoding($text, "UTF-8", "HTML-ENTITIES");