前台jsp页面代码 var username = encodeURI(encodeURI(text)); 后台获取 String username =URLDecoder.decode(username,"utf-8");