<?php /* * 功能: 字符Unicode编码转换 * 参数一: 要转码的字符串 * 参数二: 是否转码ASCII字符 默认不转码 * */ function unicode_encode($string, $isAll = false){ $string = iconv('UTF-8', 'UCS-2', $string);&n