发生乱码有三种情况:
1。表单form
1)post
解决方法:request.setCharacterEncoding("utf-8");
2)get
添加一个处理类。
2.超链接
和get处理方式相同。
3.sendRedirect()发生乱码
发生乱码有三种情况:
1。表单form
1)post
解决方法:request.setCharacterEncoding("utf-8");
2)get
添加一个处理类。
2.超链接
和get处理方式相同。
3.sendRedirect()发生乱码