android 微信支付当body标签为中文时出现编码错误的问题

将genProductArgsWX()方法中最后返回的xml编码更改为IOS8859-1即可如下:

return new String(xmlstring.toString().getBytes(),"ISO8859-1");


猜你喜欢

转载自blog.csdn.net/u011494285/article/details/50497181
今日推荐