0

at the moment I am using region info to get currency symbol.

For other countries it seems to work fine

var info= new RegionInfo("THB");
var currency = info.CurrencySymbol;

currency ends up being THB instead of ฿

May I ask how do I get the correct currency symbol or why it's returning THB instead of ฿

I've tried what others suggested, putting "TH", same outcome unfortunately.

enter image description here

enter image description here

Master
  • 2,038
  • 2
  • 27
  • 77

1 Answers1

2

RegionInfo get the Name in it. And the name for Thailand is "TH". "THB" is the ISOCurrencySymbol

This should work:

var info= new RegionInfo("TH");    
var currency = info.CurrencySymbol;

enter image description here

If still not working, check your region settings on your machine to make sure you are not overwriting anything. enter image description here.

curiousBoy
  • 6,334
  • 5
  • 48
  • 56