如果页面的content-type为utf-8,那么在发送请求时,会将字符转成utf-8后进行传送,<pre name="code" style="white-space: normal; color: rgb(73, 73, 73); font-size: 14px; line-height: 21px; background-color: rgb(237, 250, 246);">服务器tomcat收到这段字节流后,必须将它转成相应的字符,平时所使用的request.getParameter("name")直接得到了字符串, 那么从字节流到字符流这个过程系统己经帮助我们完成了(乱码的产生由此开始)
<pre style="white-space: normal; color: rgb(73, 73, 73); font-size: 14px; line-height: 21px; background-color: rgb(237, 250, 246);">tomcat中更改URI-Encoding及使用过滤器,估计是用来更改将字节流转成字符串的编码