系统编码的问题 两台机器是一样的操作系统么

解决方案 »

  1.   

    我也有这个问题,兄弟你的问题解决没有!
    可不可以一起商讨一下咯,我的QQ是:125436775
    加我,我基本都在线的!
      

  2.   

    系统都是winXP的,我换了数据库连接的驱动程序后,将数据库中查询到的数据用(str.getBytes("ISO8859_1"), "GBK")转换,现在两台机都不会出现乱码了,不过
    jdbc:mysql://localhost/数据库名?user=userName&password=passowrd&useUnicode=true&characterEncoding=gb2312
    出现如下错误:(只有部分SQL语句会出现下面的错误)
    executeQuery:General error message from server: "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (gb2312_chinese_ci,COERCIBLE) for operation '='"
    这个问题现在两台机都会。不指定编码(jdbc:mysql://localhost/数据库名?user=userName&password=passowrd )就不会出现上面的错误。