通过修改tomcat的配置文件来解决get提交乱码问题

版权声明:@渔闻520 https://blog.csdn.net/weixin_41060905/article/details/88045900

打开tomcat的文件夹,打开conf文件夹,找到servlet.xml文件,打开,

找到该行,并且改成这个样子,即加上了

URIEncoding="UTF-8",这样就可以解决所有的编码问题了。 

猜你喜欢

转载自blog.csdn.net/weixin_41060905/article/details/88045900