我用Myeclipse9从sql server 2000里取数据放到JTextField上出现乱码!网上很多人说是字符集或者编码的问题(字符集和编码是有区别的吧?)想问各位怎么设置sql server的字符集or编码 或者JTextfield本身可以设置数据库方面的字符集or编码

解决方案 »

  1.   

    new String(xx.getBytes("iso-8859-1"),"utf-8")
      

  2.   

    表示我的Myeclipse字符集是UTF-8,不过我先试试吧
      

  3.   

    The method getBytes(String) in the type String is not applicable for the arguments (String, String)
    报错了,你们说的那种方法我懂了,不过报错了
      

  4.   

    恩恩。。我和楼上的情况是一样的。按照那个方法改了,可还是报了这种错The method getBytes(String) in the type String is not applicable for the arguments (String, String)
    。。请问现在有解决的方案么