req.setCharacterEncoding("utf-8");//这个是解决后台的乱码的 resp.setContentType("text/html;charset=utf-8");//这个是解决页面乱码的