utf8_to_unicode in PHP
摘要:想使用8:UCS2格式编码下行短信的时候,需要把UTF8转换成Unicode的十六进制编码,但是PHP没有内置Unicode的支持,怎么办呢? /** * 从UTF8转换成unicode beta1.0 * @param mixed $string要转换的字符串, * @return unicode的十六进制编码*/function utf8_to_unicode_hex($string){ ...
阅读全文
posted @
2005-12-28 15:55
guoadou
阅读(966)
推荐(0)