response headers 始终是 charset=iso-8859-1

发布于 7 年前作者 wei8714869 次浏览最后编辑 7 年前来自 ask
wx.request({
      url: app.globalData._server + '/weixin/kuaidi/query',
      method: 'POST',
      dataType:'json',
      // responseType:'arraybuffer',
      header: {
        "Content-Type": "application/x-www-form-urlencoded"
      },
      data:{
        expCode: SHOPPING_NAME,
        expNo: SHOPPING_CODE
      },
      success: function (res) {
        wx.hideLoading();
        that.setData({ wulMesge: res.data.data });
        console.log(res.data.Traces);
      }
    });
WXOPEN Club 内容图片

中文会乱码

WXOPEN Club 内容图片

我需要utf-8格式的响应,怎么写都是 charset=iso-8859-1,请问大佬怎么解决,多谢

0 回复
暂无回复