java GET请求解决编码的有效代码前端:
encodeURI(encodeURI("你好")
后端代码:
String name = request.getParameter("sortName");
String sortName = "";
if(!StringUtils.isBlank(name)){
sortName = java.net.URLDecoder.decode(name,"UTF-8");
}
java GET请求解决编码的有效代码前端:
encodeURI(encodeURI("你好")
后端代码:
String name = request.getParameter("sortName");
String sortName = "";
if(!StringUtils.isBlank(name)){
sortName = java.net.URLDecoder.decode(name,"UTF-8");
}