File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
Currency Symbol Issue in iText
help for a newbie that's out of her depth!
Euro Currency Formatting In Linux
Unable to display Japanese Currency 'YEN' in pdf using iText 3.0
NumberFormat Question