• Post Reply Bookmark Topic Watch Topic
  • New Topic

handling unicode characters in jsp

 
umesh nagtilak
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am having a jsp page which is displaying DB data, having contentType = UTF-8 but now if i get some special characters from DB such as & # 9 4 4 8 (exclude space). i don't want to display the data like special character like ( unicode representation of the DB data & # 9 4 4 8 will be ⓨ ).

how to avoid this? i want to display the data as it in DB.
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question, I think, is how to display something like & #162 in your browser. You can write ¢ by putting this: ¢

or in your case & # 9 4 4 8 can be written ⓨ to get ⓨ
 
vishwanath nadimpally
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by umesh nagtilak:
i am having a jsp page which is displaying DB data, having contentType = UTF-8 but now if i get some special characters from DB such as & # 9 4 4 8 (exclude space). i don't want to display the data like special character like ( unicode representation of the DB data & # 9 4 4 8 will be ⓨ ).

how to avoid this? i want to display the data as it in DB.



You may find this useful: http://www.herongyang.com/jsp/non_ascii.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!