web项目中的乱码问题的原因及解决办法

解决办法:

方法一:<form action="sys/test" method="post">(一定要以post方式提交)

方法二:n = new String(n.getBytes("iso-8859-1"),"utf-8");
b = new String(b.getBytes("iso-8859-1"),"utf-8");

你可能感兴趣的:(Web,乱码)