I have a table of 3-alpha currency codes for every available currency, e.g: USD
, JPY
, EUR
, etc.
But it's a bit long-winded to display the 3-alpha codes on a web page when most people simply display a currency symbol ($
, ¥
, €
, etc).
I haven't been able to find a free Java library to convert the 3-alpha currency codes to their corresponding currency symbols? The Java Locale
feature is limited and cumbersome.
So I've decided to manually add a new column to my existing table and add the appropriate currency symbols myself.
However, I am not sure in what format to represent them in the table so that they can be easily outputted on a JSP page? Should I copy-paste the symbols from Wikipedia? Or, if I get Unicode values for the symbols somewhere, is it easy to have a JSP convert the Unicode values to the symbols? I haven't worked with Unicode before.