linux下php中文UTF-8转换Unicode方法和注意事项
先说下遇到问题:1.php没有内置unicode_ecode函数可以直接使用 2.网上很多资料都是用$str = iconv($encoding, 'UCS-2', $str); window下转换出来的是正常的,但在Linux下转换出来的两个字符是相反的,用在线unicode转换 ...
先说下遇到问题:1.php没有内置unicode_ecode函数可以直接使用 2.网上很多资料都是用$str = iconv($encoding, 'UCS-2', $str); window下转换出来的是正常的,但在Linux下转换出来的两个字符是相反的,用在线unicode转换 ...