关于Servlet通过forward跳转其他页面乱码问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/toward_south/article/details/79965651

response.getWriter().append("Served at: ").append(request.getContextPath());

这条语句删了就可以了,我也不知道为什么。很奇怪。刚开始还设置了各种格式。最后发现是这句话的问题,难道response.getWriter()影响了其编码格式?很奇怪。

猜你喜欢

转载自blog.csdn.net/toward_south/article/details/79965651