• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

execute insert statements having unicode data from java

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic