eclipse Ubuntu 连接mysql 中文乱码问题


      其他的地方都一样,设置系统编码和表编码
      
这个呵呵。。。
&
转义符



xp 下

conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/htwebsite?useUnicode=true&characterEncoding=GBK""root",
                    
"root");


ubuntu 下
 
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/htwebsite?useUnicode=true&characterEncoding=gbk""root",
                    
"root");

posted on 2008-04-29 16:05  gwazy  阅读(596)  评论(0编辑  收藏  举报

导航