我的数据库编码为UTF-8,数据连接为
con = DriverManager
.getConnection("jdbc:mysql://localhost/utftest?user=root&password=password&useUnicode=true&characterEncoding=GBK");
请问我用rs.getString(1);得到字符编码是什么,这里与"characterEncoding=GBK"有没有关系
con = DriverManager
.getConnection("jdbc:mysql://localhost/utftest?user=root&password=password&useUnicode=true&characterEncoding=GBK");
请问我用rs.getString(1);得到字符编码是什么,这里与"characterEncoding=GBK"有没有关系
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货