solution
1 Use the urlencode and urldecode methods to bypass the process of transcoding to unicode
header('content-type:application/json;charset=utf-8');
$arr = array ('lang'=>urlencode('我是中文'));
echo urldecode(json_encode($arr));
2 In PHP5.4, json_encode has a new option: JSON_UNESCAPED_UNICODE, hence the name, which means that json_encode does not require unicode encoding.
header('content-type:application/json;charset=utf-8');
$data = ['lang'=> '我是中文'];
echo json_encode($data,JSON_UNESCAPED_UNICODE);