Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using special characters in java

 
hashmukh punamia
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic