I write currency conversion code in Java and using this API to create an internal currency lookup table
final Locale[] locales = Locale.getAvailableLocales(); for (final Locale locale : locales) { final Currency currency = Currency.getInstance(locale); String sign = currency.getSymbol(locale) String code = currency.getCurrencyCode() }
So far I have two observations.
Many international currencies have signs in Latin script and native script. Java seems to be inconsistent with what it returns. Am I using a restriction or am I using the API incorrectly?
Thanks!
source share