String parameter = request.getParameter("username");
System.out.println(parameter);
//将乱码转回用ISO8859-1编码前的二进制位
byte[] bytes = parameter.getBytes("ISO8859-1");
//再使用UTF-8进行编码
parameter = new string(bytes,"UTF-8");
System.out.println(parameter);
12-03
1246
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-06
739
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)