aspose file tools*
The moose likes JDBC and the fly likes execute insert statements having unicode data  from java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "execute insert statements having unicode data  from java " Watch "execute insert statements having unicode data  from java " New topic
Author

execute insert statements having unicode data from java

Srikanth chinta
Greenhorn

Joined: May 24, 2008
Posts: 4
Hi,

I am facing problems in inserting unicode data into sql server 2005 from a java file. I have written couple of insert statements in file xyz.sql having some unicode data (chinese characters) and saved it as UTF-8.



I have pre-appended capital N to the Chinese characters.

Now when I execute the sql file from java program , Some junk data is being inserted into the database, and yes, the database is unicode compatible.

The java program is ecexuting the insert statements fine but junk data is being inserted into the couloumn where i am expecting chinese data.

If i execute the particular insert statement in sql server ,chinese is being inserted in the couloumns.

can you please help ?

Thanks,
Srikanth


SCJP 1.5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: execute insert statements having unicode data from java
 
Similar Threads
Inserting Japanese text into Oracle database
store unicode
String, UTF-8, Unicode and DB
db2 - 703 certification
DB2 700 and 701 - Test Sample