request.getParameter()乱码解决

java取值:
Stirng name=request.getParameter("tkeyname");
name=URLDecoder.decode(name,"utf-8");
或者name=new String(name.getBytes("ISO-8859-1"),"UTF-8");

jsp请求参数:
"&tkeyname="+encodeURI(encodeURI(tkeyname));

你可能感兴趣的:(URLDecoder,encodeURI,中文参数乱码)