解决方案一:
在servlet中设置
将response.setContentType("text/html");改为
response.setContentType("type=text/html; charset=utf-8");
解决方案二:
页面中设置的的字符和servlet中设置的一样
解决方案三:
在页面中<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">