1.你看看你的mysql 变量中 default-character-set 是否已经是你要的 GB2312
2.jsp 页面中有 <%@ page contentType="text/html; charset=gbk" language="java"%> 就可以了(注意不是<%@ page contentType="text/html; charset=gbk" %>)
3.mysql 的连接应该这样比较好
jdbc:mysql://localhost:3306/mytest?useUnicode=true&characterEncoding=GBK&autoReconnect=true做到这3点应该就没问题了,我的在windows linux 下 tomcat ,resin 下都没问题。