• 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

Currency symbol in jsp

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,


When I run the below code, it is showing the currency symbol € with amount. But when I am calling this code in jsp it is not showing the currency symbol. Instead of currency symbol, it is showing ? symbol after the price


 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read through this chapter (especially the Page encoding and response encoding sections) http://docs.oracle.com/javaee/1.4/tutorial/doc/WebI18N5.html to understand how the character encoding plays a role in the JSP output.
 
Ranch Hand
Posts: 43
Netbeans IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can generate a lot of symbols by using eg to generate € to gerate check mark(✓) etc ✗ etc i don't know what it's called but on my jsp page using netbeans i just press & plus code completion (Ctrl + spacebar) then choose the symbol i want.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

caleb momanyi wrote: i don't know what it's called but on my jsp page using netbeans i just press & plus code completion (Ctrl + spacebar) then choose the symbol i want.



This isn't directed at you, but this is exactly the reason why I usually recommend beginners not to use an IDE for anything other than editing. In fact, that's exactly what I use my IDE for. IDEs provide a lot of features which are good if you understand the real details of the technologies you are using. Otherwise you'll just rely on the IDE magic without understanding the underlying technology of your application.
 
caleb momanyi
Ranch Hand
Posts: 43
Netbeans IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

This isn't directed at you, but
this is exactly the reason why
I usually recommend
beginners not to use an IDE
for anything other than
editing.



I have been hearing that quite a lot. my only question is what level is a person considered to be a beginner? and when do I stop considering myself as such. could you please clarify that. I stopped writting code in JEdit as soon as I had compiled and run my first couple of hello world like programs. did I stop too soon? what is your recommendation for the best time to start using the ide?
 
sumit sharmast
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I added these 6 lines of code in web.xml and currency problem is solved now




I write this code here because I feel that giving a solution is better than suggesting a weblink to a problem.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic