get请求的乱码问题 : jsp 中文编码 和 java 后台解码

location.href = "${base}/platform/platform!search_List.action?key=" + encodeURI(encodeURI(key))+";

String key = getRequest().getParameter("key");//获取搜索关键字
key = URLDecoder.decode(URLDecoder.decode(key,"utf-8"),"utf-8");

猜你喜欢

转载自blog.csdn.net/qq_41046717/article/details/81188133