在action中加入request.setCharacterEncoding("UTF-8");response.setCharacterEncoding("UTF-8");
在调用action的jsp页面头部添加<%@ page contentType="text/html; charset=utf8"%>