在PHP中从json获取utf8


get utf8 from json in PHP

我有一个JSON:

$json = "{"guid": 1, "cid": 644, "lastest": [{"stt": 1, "uid": 111, "created": 1427168366, "update": 780, "content": "qu''xc3''xaa t''xc3''xb4i", "cname": "mvd", "parentid": 0, "highlight": 0}]}"
$arr =json_decode($json, true)
echo $arr['lastest'][0]['content'].

显示qu''xc3''xaa t''xc3''xb4i.

但我想展示"quê tôi".

在标题处,我设置:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

该怎么办?非常感谢!

我在本地主机上尝试了Below,得到了您的解决方案

<?php 
header('Content-Type: text/html; charset=utf-8');
echo "qu'xc3'xaa t'xc3'xb4i";
//I removed backshlash qu''xc3''xaa t''xc3''xb4i -> qu'xc3'xaa t'xc3'xb4i
?>

但是json仍然存在问题可能是Bassem Lhm关于编码是正确的