Hello Oleg, set the connect option 'unicode=yes' in the JDBC URL (see http://www.sapdb.org/7.4/jdbcSapdbcEng.html).
Regards Alexander Schr�der SAP Labs Berlin > -----Original Message----- > From: Oleg V. Nastyushkin [mailto:[EMAIL PROTECTED] > Sent: Monday, October 14, 2002 11:03 AM > To: Sap DB > Subject: UNICODE problem in Java executeStatement > > > Hi, > I`m try this: > > Database instance in UNICODE, DEFAULT_CODE as UNICODE. > > in my Java Application: > -------------------- > PreparedStatement insertStmt = myDatabase.createPreparedStatement( > "INSERT INTO myTable (id, name) VALUES ( ?, ? )" ); > > insertStmt.setInt(1, 1); > insertStmt.setString(2, "RUSSIAN_LETTERS"); > insertStmt.execute(); > insertStmt.close(); > > myDatabase.executeStatement( > "INSERT INTO myTable (id, name) VALUES ( 2, > 'RUSSIAN_LETTERS' )"); > > myDatabase.executeStatement("commit"); > --------------------- > > in SQL Studio : > --------------------- > select * from myTable : > > ID | NAME > ------------ > 1 | RUSSIAN_LETTERS > 2 | ??????????????? > --------------------- > > Why '???????????????' ? > > Thank you > Oleg > > _______________________________________________ > sapdb.general mailing list > [EMAIL PROTECTED] > http://listserv.sap.com/mailman/listinfo/sapdb.general > _______________________________________________ sapdb.general mailing list [EMAIL PROTECTED] http://listserv.sap.com/mailman/listinfo/sapdb.general
