java - Not able to get correct Currency symbol for countries -
i tried java.text.numberformat.for denmark english, gave me 'dkk' .but need 'kr'.
locale denmark = new locale("en","dk"); numberformat denmarkformat = numberformat.getcurrencyinstance(denmark); system.out.println("denmark: " + denmarkformat.format(num));
i tried java.util.currency.getsymbol(). denmark english,it gave me 'dkk' only.
locale denmark = new locale("en","dk"); currency curr = currency.getinstance(denmark); string symbol = curr.getsymbol(denmark);
(or)
i can custom currency symbols in jsp if pass symbol java,it not able properly.for uk,'£' symbol passed jsp received £
in java. how in java,
string currency=(string)pagecontext.getrequest().getattribute("currencysymbol");
getting solution of these problems great.thanks in advance.
i need below currency symbols,
usa-$ ca-$ cn-¥ pl-zł tr-try nl-eur se-kr dk-kr fi-eur au-$ de-eur ch-chf gb-£ it-eur at-eur fr-eur es-eur be-eur ie-eur pt-eur no-kr hk-$
Comments
Post a Comment