编码格式(乱码)

1.new String(title.getBytes("ISO-8859-1"),"UTF-8")

 

request.setCharacterEncoding("utf-8");
response.setHeader("Content-type", "text/html;charset=UTF-8");
response.setCharacterEncoding("utf-8");

转载于:https://www.cnblogs.com/jianyi12/p/5647143.html

你可能感兴趣的:(编码格式(乱码))