request.setCharacterEncoding("UTF-8"); response.setContentType("text/html;charset=UTF-8"); 转载于:https://my.oschina.net/u/3164851/blog/822321