mysql的JDBC Driver似乎没有取得当前操作系统的默认字符集 本来Driver和mysql是通过Socket传输字节流 但没有经过转换 你把取出数据库连接的地方改成下面这样就可以! 我跟踪过Driver代码才发现这个的Properties info = new Properties();
info.setProperty("user","root");
info.setProperty("password","root");
info.setProperty("useUnicode","true");
info.setProperty("characterEncoding","GB2312");
conn = DriverManager.getConnection(url,info);
info.setProperty("user","root");
info.setProperty("password","root");
info.setProperty("useUnicode","true");
info.setProperty("characterEncoding","GB2312");
conn = DriverManager.getConnection(url,info);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货