Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to convert character codes to characters  RSS feed

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.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!