收藏
回答

获取运力id列表get_delivery_list ,响应乱码? 接口地址,请详见问题内容。

求助: 在调用获取运力id列表get_delivery_list接口时,总是返回乱码,如图


body的完整返回为,返回太长,贴个片段:{"errcode":0,"delivery_list":[{"delivery_id":"007EX","delivery_name":"俄顺达"},{"delivery_id":"138SD","delivery_name":"泰国138快递"},{"delivery_id":"139EXPRESS","delivery_name":"139快递"},{"delivery_id":"13TEN","delivery_name":"13ten"},{"delivery_id":"168EXPRESS","delivery_name":"Antron Express"},{"delivery_id":"17FEIA","delivery_name":"一起飞啊国际速运"},{"delivery_id":"17POSTSERVICE","delivery_name":"17 Post Service"},{"delivery_id":"1DLEXPRESS","delivery_name":"e递诺快递"},{"delivery_id":"1HCANG","delivery_name":"1号仓"},{"delivery_id":"1SHIDA","delivery_name":"壹世达"},{"delivery_id":"1TONG","delivery_name":"1TONG"},{"delivery_id":"2GO","delivery_name":"2GO"},{"delivery_id":"360LION","delivery_name":"纬狮物联网"},{"delivery_id":"360ZEBRA","delivery_name":"斑马物联网"},{"delivery_id":"5Post","delivery_name":"5Post"},{"delivery_id":"5UL","delivery_name":"5UL"},{"delivery_id":"8256RU","delivery_name":"BEL北俄国际"},{"delivery_id":"8DT","delivery_name":"永利八达通"},{"delivery_id":"8STAREXPRESS","delivery_name":"八星物流"},{"delivery_id":"A4PX","delivery_name":"转运四方"},{"delivery_id":"AAE","delivery_name":"AAE全球专递"},{"delivery_id":"ABGJ","delivery_name":"澳邦国际"},{"delivery_id":"ABXEXPRESSMY","delivery_name":"ABX Express"},{"delivery_id":"ACOMMERCE","delivery_name":"ACommerce"},{"delivery_id":"ACS","delivery_name":"ACS雅仕快递"},{"delivery_id":"ACSCOURIER","delivery_name":"ACS Courier"},{"delivery_id":"ADD","delivery_name":"澳多多"},{"delivery_id":"ADICIONAL","delivery_name":"Adicional Logistics"},{"delivery_id":"ADP","delivery_name":"ADP Express Tracking"},{"delivery_id":"ADSONE","delivery_name":"ADSOne快递"},{"delivery_id":"AIR21","delivery_name":"AIR21"},{"delivery_id":"AIRPAKEXPRESS","delivery_name":"Airpak Express"},{"delivery_id":"AIRSPEED","delivery_name":"Airspeed International Corporation"}],"count":1510}

最后一次编辑于  01-09
回答关注问题邀请回答
收藏

1 个回答

  • 视频号小店技术专员-hengrui
    视频号小店技术专员-hengrui
    01-16

    接口不存在乱码问题,请先确认一下代码的encode方式是不是utf8,可以在postman上测试一下。

    01-16
    有用
    回复 2
    • sonic
      sonic
      04-02
      你们确定是utf-8?明明是iso-8859-1。太坑了。我这个是用python3转换的
      04-02
      回复
    • 视频号小店技术专员-hengrui
      视频号小店技术专员-hengrui
      04-02回复sonic
      建议用curl你手动发包请求一下看看回包是不是utf-8,很简单的。用python库中间转了多少次编码,你们也搞不清的。
      04-02
      回复
登录 后发表内容