Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我当前的文化是en-US,但网格的语言包含文本框并设置为另一种语言,例如fr-FR. 如何从文本框的输入字符串中获取货币符号?
en-US
fr-FR
谢谢你。
如果您知道文化/地区 ISO 代码,您可以获得相应的货币符号
String language = "FR-fr"; // <- France (culture or region ISO code) String currecySymbol = new RegionInfo(language).CurrencySymbol; // <- should return Euro currency symbol €