$response->decoded_content是字符
$response->content是字节
jrhmpt01:/root# perl x3.pl 307 0
$str is %E6%9D%AD%E5%B7%9E
$content is {"code":1000,"msg":"success!","data":{"buses":[{"busId":0,"station":-1,"state":-1,"distance":-1,"reporTime":-1}],"stations":[{"station":1,"stateName":"\u5218\u6587\u6751"},{"station":2,"stateName":"\u8584\u677f\u5206\u5382"},{"station":3,"stateName":"\u6bdb\u7af9\u5c71"},{"station":4,"stateName":"\u6c88\u5bb6\u6865"},{"station":5,"stateName":"\u7126\u5316\u5206\u5382"},{"station":6,"stateName":"\u676d\u73
decode_json 必须是unicode形式的字符
最新推荐文章于 2023-04-02 08:17:14 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)