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

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

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

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

posted @ 2016-08-16 15:46  F领主  阅读(1370)  评论(0编辑  收藏  举报