php中json_encode()不要转换为unicode

我们使用json_encode()不希望转换为unicode,这个时,加上一个参数即可

关键字JSON_UNESCAPED_UNICODE即Json不要编码Unicode.

json_encode($data,JSON_UNESCAPED_UNICODE)

你可能感兴趣的:(PHP)