使用iconv方法把中文编码转换为utf8
$value = iconv('gb2312','utf-8',$value);json_encode($value);输出结果正常:{“name”:”中文字符串”}