aspose file tools*
The moose likes Tomcat and the fly likes Sterling pound symbol not displaying Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Sterling pound symbol not displaying" Watch "Sterling pound symbol not displaying" New topic
Author

Sterling pound symbol not displaying

Andy Deighton
Ranch Hand

Joined: Apr 01, 2003
Posts: 39
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

Joined: Aug 08, 2003
Posts: 326
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

Joined: Apr 01, 2003
Posts: 39
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sterling pound symbol not displaying