Subject | bad news about encoding... |
---|---|
Author | Marczisovszky Daniel |
Post date | 2002-04-09T20:22:15Z |
Sorry, none of these works.
daniel
Properties properties = new Properties ();
properties.put("user", "sysdba");
properties.put("password", "masterkey");
properties.put("lc_ctype", "UNICODE_FSS");
// First
con = DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:/develop/test.gdb", properties);
PreparedStatement stmt = con.prepareStatement("insert into test (win1250field) values (?)");
stmt.setString(1, "\u0151rült");
stmt.executeUpdate();
// Second
con = DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:/develop/test.gdb", properties);
PreparedStatement stmt = con.prepareStatement("insert into test (win1250field) values (?)");
stmt.setString(1, "őrült");
stmt.executeUpdate();
daniel
Properties properties = new Properties ();
properties.put("user", "sysdba");
properties.put("password", "masterkey");
properties.put("lc_ctype", "UNICODE_FSS");
// First
con = DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:/develop/test.gdb", properties);
PreparedStatement stmt = con.prepareStatement("insert into test (win1250field) values (?)");
stmt.setString(1, "\u0151rült");
stmt.executeUpdate();
// Second
con = DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:/develop/test.gdb", properties);
PreparedStatement stmt = con.prepareStatement("insert into test (win1250field) values (?)");
stmt.setString(1, "őrült");
stmt.executeUpdate();