实例如下: //将内容进行unicode编码
function unicode_encode($name)
{ $name = iconv('utf-8', 'ucs-2', $name); $len = strlen($name); $str = ''; for ($i = 0; $i < $len - 1; $i = $i + 2) { $c = $name[$i]; $c2 = $name[$i + 1]; if (ord($c) > 0) { // 两个字节的文
时间:2025-01-15 | 阅读:255