开发者

Get country tld

开发者 https://www.devze.com 2022-12-25 13:52 出处:网络
How do I programmatically get the system country tld. In the registry ther开发者_StackOverflowe\'s a key called sCountry which has the country\'s name, but in the system language, eg. If the user has

How do I programmatically get the system country tld. In the registry ther开发者_StackOverflowe's a key called sCountry which has the country's name, but in the system language, eg. If the user has the Spanish version sCountry would be Espana, German version would be Deutschland, etc.


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

Why do you need this, anyway, if you don't mind my asking?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号