java - Currency code to currency symbol mapping -


good day, in database there table houses sale records. each house record there currency code (in iso 4217 format) field. possibly somehow currency symbol code use on presentation side ?

thank you.

p.s. trying resolve problem setting currency object (created currency.getinstance(currencycode)) decimalnumberformat setcurrency method , format value needed display, formatted value still without currency symbol.

you can use currency object's getsymbol method.

what symbol used depends on locale used see this , this.

update, jan 2016: links dead. specific java 1.4/5 not relevant anymore. more details on currency formatting can found in https://docs.oracle.com/javase/tutorial/i18n/format/numberformat.html. links can found on waybackengine though.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -