阅读:712回复:0
php Unicode转码的相关语法
$result='\u4e0d\u652f\u6301\u7684\u5f00\u6237\u884c\/';
$result=preg_replace("#\\\u([0-9a-f]{4})#ie", "iconv('UCS-2BE', 'UTF-8', pack('H4', '\\1'))", $result); echo $result; 在线unicode转码工具 http://www.0475seo.com/tools/unicode.html [alaimaro于2018-09-03 09:43编辑了帖子]
|
|