在WEB页面中, 正确地传递显示中文, 可以把Request和Response的编码设为UTF-8, 如下: protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException ... { ... request.setCharacterEncoding("UTF-8"); response.setContentType("text/html; charset=UTF-8"); ...}