有人可以帮助我吗?
如何将所有 HTML 特殊字符转换为 UTF-8
例子:
Hello Word! P&H
转换成:
Hello Word! P&H
Use html_entity_decode() http://www.php.net/manual/en/function.html-entity-decode.php并明确指定字符集:
$string = html_entity_decode($string, ENT_QUOTES, "utf-8");
备查:PHP 字符串函数 http://www.php.net/manual/en/ref.strings.php
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)