乱码解决:
前提:统一HTML页面编码格式utf-8
post
request.setCharaterEncoding("utf-8");
get-->url穿值
修改配置问件:tomcat-->conf-->server.xml,添加URLEncoding-"UTF-8"
new String(字节数组(“”),"UTF-8");
filter-->过滤器
1,实现Javax.servlet.filter接口
2,在web.xml文件中声明
乱码解决:
前提:统一HTML页面编码格式utf-8
post
request.setCharaterEncoding("utf-8");
get-->url穿值
修改配置问件:tomcat-->conf-->server.xml,添加URLEncoding-"UTF-8"
new String(字节数组(“”),"UTF-8");
filter-->过滤器
1,实现Javax.servlet.filter接口
2,在web.xml文件中声明