因为JSON直接支持
uxxxx语法,所以我想到的第一件事是:
$unipreChar = 'u1000';echo json_depre('"'.$unipreChar.'"');另一种选择是使用
mb_convert_encoding()
echo mb_convert_encoding('က', 'UTF-8', 'HTML-ENTITIES');或利用UTF-16BE(大端)与Unipre代码点之间的直接映射:
echo mb_convert_encoding("x10x00", 'UTF-8', 'UTF-16BE');


