Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to convert character codes to characters

Anoobkumar Padmanabhan
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers

in my application in JSP, I want to insert special characters like, ',",\ etc. it was working fine. but when i copy some text from some sites and paste as my input, it is not working. i found that this happens because the special characters in some sites are displayed using the name codes or number codes
[example: � -> left single quote
� -> left double quote
� -> middle dot ]

i want to change those codes to the actual character.

Is there any method is available for this conversion? or can any one tell me how to do this conversion.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic