• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

handling unicode characters in jsp

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ⓨ
 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic