Currency Display in Euro

Hi All,

I am using

Locale currentLocale = new Locale("ca", "ES", "EURO");

NumberFormat currencyFormat

= NumberFormat.getCurrencyInstancecurrentLocale);

currencyFormat.setMinimumFractionDigits(2);

currencyFormat.setMaximumFractionDigits(2);

currencyFormat.format(some floating price))

for euro currency as locale. But in the web pages it is displayed as

Subtotal: 23,81

Price Per Set:1,04

Any help in this regard would be highly appreciated.

Thanks

Sathish

I expect it to print Euro currency symbol.

[601 byte] By [sathish37] at [2007-9-26 6:22:44]
# 1

Hi Sathish,

first up, check that the font you are displaying the web page in by default is capable of displaying a Euro symbol. The Euro is about the newest glyph to hit fonts, and because of this there are Euro and sans-Euro versions of a lot of TrueType fonts. The same can also be said for a couple of the encodings you could encode your web pages in. Maybe one of those two will be the difference for you.

Hope that helps!

Martin Hughes

martinhughes at 2007-7-1 15:23:18 > top of Java-index,Desktop,I18N...
# 2
Dear Martin Hughes,I extracted the numeric part alone and concatenated"€" to the front.ex: €10.55 yielded me correct result.Thank you very much for your reply._sathish
sathish37 at 2007-7-1 15:23:18 > top of Java-index,Desktop,I18N...