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 @ 2008-04-29 16:05 gwazy 阅读(404) 评论(0) 编辑 收藏