login
About me
/
公告
/
杂谈
/
心情
/
技术
/
转载
/
笑话
/
编辑器
/
外挂
/
书签
/
其他
/
翻译
[转]在php中,知道汉字的unicode码,如何显示成汉字啊
function u2gbk($str){
return preg_replace("/\\\u([\da-f]{4})/ie", 'iconv("UCS-2", "gb2312", pack("H4", "
\1"))'
, $str);
}
echo u2gbk('\u65F0');
Refer from
http://i.cn.yahoo.com/tianyunzhixing/blog/p_233/
This article is posted by
guoxiaod
on
August 4th,2007 23:08
, link is
https://sanmuding.com/i/199
.
Leave a reply
Name
Email
If send email when anyone reply?
Url