Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!