Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I set the local currency sign?

 
Bala Raj
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic