Fight With Me!!!

导航

JAVA操作数据库插入中文表中显示乱码的解决方法

String dbUrl = "jdbc:mysql://localhost:3306/BookDB?useUnicode=true&characterEncoding=GB2312 ";  

用useUnicode=true&characterEncoding=GB2312 这些参数

posted on 2016-05-29 16:17  nickTimer  阅读(312)  评论(0编辑  收藏  举报