json_encode 中文不乱码

echo json_encode("中文", JSON_UNESCAPED_UNICODE);
 
//"中文"

猜你喜欢

转载自www.cnblogs.com/zxqblogrecord/p/10300244.html