php解析json中文乱码

    if(! mb_check_encoding($result, 'utf-8')) {
            $result = mb_convert_encoding($result,'UTF-8',['ASCII','UTF-8','GB2312','GBK']);
        }

  

posted @ 2022-03-09 11:20  -韩  阅读(101)  评论(0编辑  收藏  举报