对于地址后面传递参数为中文值时应该对中文值进行URL编码
发送参数
this.username = URLEncode.encode("中文值","UTF-8");
接收参数
URLDecoder.decode(new String(request.getparameter("username").getBytes("ISO8859-1"),"UTF-8"),"UTF-8");
发送参数
this.username = URLEncode.encode("中文值","UTF-8");
接收参数
URLDecoder.decode(new String(request.getparameter("username").getBytes("ISO8859-1"),"UTF-8"),"UTF-8");