Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sterling pound symbol not displaying

 
Andy Deighton
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a Java app running on Tomcat 4.x. I'm displaying a currency value in a JSP, and this string value comes from the following call:

NumberFormat.getCurrencyInstance().format( value );

This finds its way into a bean, and that bean is displayed on the JSP. Easy!
On Windows, I get the sterling pound symbol. On Solaris, I get a strange little box with a spike in each corner (which is certainly no currency symbol I'm aware of!!).

Is there something I need to set in Tomcat to recognise pound symbols?

Andy
 
Ray Stojonic
Ranch Hand
Posts: 326
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The symbol you described is the 'currency placeholder' character, so you're moving in the right direction.

Try the NumberFormat.getCurrencyInstance( Locale ) form of the method.
 
Andy Deighton
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ray Stojonic:
The symbol you described is the 'currency placeholder' character, so you're moving in the right direction.

Try the NumberFormat.getCurrencyInstance( Locale ) form of the method.


Thanks Ray. I'll try it tonight.

Andy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic