Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Displaying Currency Symbols

843840Oct 18 2009 — edited Oct 19 2009
Hello,

I am trying to display a certain decimal as a currency, the code looks like:
NumberFormat currency =
                NumberFormat.getCurrencyInstance( Locale.FRANCE );
        return currency.format( price );
however, when this is displayed in the browser (through EL), the currency symbol is displayed as a question mark.
I read some other posts on this problem and they recommended I check that the font that I am using is able to display currency symbols.
I am not sure what they mean. The font-family that I am using is specified in my CSS file and it is arial, sans-serif.
I tried to look for something online that states whether this font can display currency symbols but couldn't find anything.
Would changing the font help?
What should I change it to?

Thank you
_
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2009
Added on Oct 18 2009
10 comments
989 views