Get country tld

How to programmatically get the system country tld. In the registry there is a key called sCountry, which has the name of the country, but in the system language, for example. If the user has the Spanish version of sCountry will have Espana, the German version will be Deutschland, etc.

+3
source share
1 answer

Wikipedia says that country TLDs are based on ISO 3166 with a few exceptions , so presumably GetLocaleInfo with LCTYPE LOCALE_SISO3166CTRYNAME would be useful for this. Oh, but you said that.

Why do you need this if you do not mind me asking?

+1

Source: https://habr.com/ru/post/1739009/


All Articles