在运行的JSP前面加上<%@ page contentType="text/html; charset=GB2312" %> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>即可