Currency code to currency symbol mapping

前端 未结 6 1932
太阳男子
太阳男子 2021-02-07 09:46

Good day, in database there is table with houses for sale records. For each house record there is currency code (in ISO 4217 format) field. Is it possibly to somehow get currenc

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-07 10:18

    You should call Currency.getSymbol(Locale) rather than Currency.getSymbol() (without a locale object). Setting the default locale gives you the behavior that you want.

提交回复
热议问题