Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying currency values

 
ravinderSingh singh
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm trying to display some monetary value using the code below,

NumberFormat.getCurrencyInstance(Locale.ENGLISH).format(value);

When executed, the code correctly formats the value but it displays some funny star symbol followed by the formatted value.

Does anyone know why this is and how I could replace the funny star symbol with a currency symbol (�)?
 
Grant Gainey
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Locale.UK - Locale.ENGLISH is just "en", and I have no idea what it thinks it's mapping currency to.

Grant
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!