中文乱码问题

//处理poset提交方法,参数的中文乱码

request.setCharacterEncoding("utf8");

//处理get提交方法,参数的中文乱码

v = new  String(v.getBytes("iso-8859-1"), "utf8");

//处理响应内容的中文乱码

response.setContentType("text/html;charset=utf8");

你可能感兴趣的:(中文乱码问题)