File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Using special characters  in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Using special characters  in java" Watch "Using special characters  in java" New topic
Author

Using special characters in java

hashmukh punamia
Greenhorn

Joined: Aug 14, 2007
Posts: 22
HI Ranchers,

I want to add all the special characters to the ms-sql 2005 database using java program.
Is there anyway where we can encode the string with special characters.

Thanks & Regards,
Hashmukh
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Java supports unicode. SQL Server supports unicode. You don't need to do anything, assuming you use a Unicode data type (e.g. nvarchar rather than varchar) in your datamodel.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using special characters in java
 
Similar Threads
how to differntiate special characters and normal characters
HQL + LIKE + _
issue with special characters with sax parser
Reg. identifier
Error processing resource while parsing XML with '&' symbol