$testJSON=array('name'=>'中文字符串','value'=>'test');
foreach ( $testJSON as $key => $value ) {
$testJSON[$key] = urlencode ( $value );
}
echo urldecode ( json_encode ( $testJSON ) );
php 解决json_encode 中文乱码
最新推荐文章于 2022-11-17 17:07:59 发布