今天做小程序开发,做注册功能时提交到后台的中文是乱码的。解决方式如下:

1、修改小程序代码wx.request添加如下属性

header:{

'content-type': 'application/x-www-form-urlencoded;charset=utf-8'

}

2、修改tomcat配置文件server.xml,connector添加   URIEncoding="UTF-8"

TAG标签: 小程序小程序打印机乱码不停打印

http://www.xiaochengxub.com/read-101431.html