php输出json中文显示编码-解决办法

$str = "*";
$ar = array(
"a" => "a0",
"b" => "b0",
"c" => "c0",
"d" => "d0",
"e" => $str,
);
echo preg_replace("#\\\u([0-9a-f]{4})#ie", "iconv('UCS-2BE', 'UTF-8', pack('H4', '\\1'))", json_encode($ar));

上一篇:rocketMQ No route info of this topic 错误


下一篇:hdu1247 字典树