PHP之jSON中文 初用PHP json_encode 不支持中文; 解决思路:先编码一下下,urlencode(iconv('gbk', 'utf-8',$r['username'])); 在客户端:解码一下下:decodeURI(p.username)