调用wx.request后,返回值为乱码
调用wx.request后,返回值为乱码。如何解决?能否对返回值进行再编码,如果不能如何解决? 我的代码片断如下: [代码]wx.request({[代码][代码] [代码][代码]url: [代码][代码]'https://省略隐藏.../miniProgramInterface/login.action'[代码][代码],[代码][代码] [代码][代码]data:{[代码][代码] [代码][代码]user:[代码][代码]'1a用户'[代码][代码],[代码][代码] [代码][代码]password:[代码][代码]'2b密码'[代码][代码],[代码][代码] [代码][代码]code:[代码][代码]'3c代码'[代码][代码],[代码][代码] [代码][代码]},[代码][代码] [代码][代码]header:{[代码][代码] [代码][代码]'content-type'[代码][代码]:[代码][代码]'application/x-www-form-urlencoded'[代码][代码],[代码][代码] [代码][代码]},[代码][代码] [代码][代码]method:[代码][代码]'POST'[代码][代码],[代码][代码] [代码][代码]success:[代码][代码]function[代码][代码](res){[代码][代码] [代码][代码]console.log(res.data)[代码][代码] [代码][代码]},[代码][代码] [代码][代码]});[代码]