aspose file tools*
The moose likes Java in General and the fly likes How do I set the local currency sign? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How do I set the local currency sign?" Watch "How do I set the local currency sign?" New topic
Author

How do I set the local currency sign?

Bala Raj
Ranch Hand

Joined: Sep 12, 2000
Posts: 75
When I execute the following program in Sun Solaris with Java SDK 1.1.7 I am getting
en_US, $1,000.00 but with SDK 1.2.2 I am not getting the $ sign? (instead of dollar sign it is printing some junk character).

We are using IBM Websphere 3.5 on Solaris.
Can some one help me on this?
Thanks in advance,
Bala.
[ February 05, 2002: Message edited by: Bala Rajamani ]
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Hi - I get the $ on Linux with JDK 1.3.1, and I think this is correct output.
I can only guess there is a mild bug in your SDK.
I'm sure you have the sources for it. Take a look at them.
Regards, Guy
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
The junk character's probably the currency sign - if this HTML goes thro u should see it:
"¤"
Dunno why you're not getting the dollar though.


I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I set the local currency sign?