Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Loading Chinese characters into Oracle

 
sridhar Ranganathan
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to load chinese characters into Oracle 9i using Java.

I am using Preparestatement to load the values.
Have set the DB which can handle chinese language.
I am using the following statement to set the chinese string.

preparedStatement.setObject(i, "邮箱大小为");

The datatype in the table and the paramtype configured are nvarchar.

The value gets loaded as "???".

However when i try to manually insert the field with the following query i am able to successfully load.

Insert into china (Name) values ('邮箱大小为')

Any help please!!!
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just googled and found this thread. This may give you a kickstart.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic