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!

Setting the Locale for <f:convertNumber>

843842Oct 12 2005 — edited Jul 24 2006
I'm using <f:convertNumber> to format currency values pulled from a database. I've set the default locale in one of my config files, managed-beans.xml (this project started out in Studio Creator) as follows

<application>
<locale-config>
<default-locale>en</default-locale>
</locale-config>
</application>

However, the formatting appears with a symbol I don't recognize instead of the US dollar sign. I've also tried using the locale attribute of the tag but it still renders strangely.

<f:convertNumber type="currency" locale="US"/>

This is what is outputted to the screen:
�1,852.40

What am I missing?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2006
Added on Oct 12 2005
4 comments
162 views