sybase 写入中文都变成乐问号 乱麻

ps.setString(2,new  String("要写入得文字".getBytes("gb2312"),"ISO8859_1"));

Class.forName("com.sybase.jdbc2.jdbc.SybConnectionPoolDataSource").newInstance();
   String urlsy="jdbc:sybase:Tds:110.15.31.12:4100/database";
   String usersy="sa";
   String passwordsy="password";
   connsy= DriverManager.getConnection(urlsy,usersy,passwordsy);

你可能感兴趣的:(jdbc,String,Sybase)