编码格式(乱码)

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