This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Using special characters  in java" Watch "Using special characters  in java" New topic

Using special characters in java

hashmukh punamia

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,
Paul Sturrock

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
I agree. Here's the link:
subject: Using special characters in java
It's not a secret anymore!