从前台获取的数据出现乱码的解决方法

使用URLDecoder.decode(string, "utf-8")改变编码

①Form.name = URLDecoder.decode(Form.name, "utf-8");

②String[] index = {URLDecoder.decode(request.getAttribute("index"),"utf-8")};

原文地址:https://www.cnblogs.com/flord/p/5776661.html