Country/Region Strings

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Country-Region Strings on docs.microsoft.com. Country and region strings can be combined with a language string to create a locale specification for the setlocale, _wsetlocale, _create_locale, and _wcreate_locale functions. For lists of country/region names that are supported by various Windows operating system versions, see the National Language Support (NLS) API Reference.In the lists, the country/region string can be any of the country values in the Locale – Language Country/Region column, or any of the abbreviations in the Country or Region name abbreviation column.

The C run-time library implementation also supports the following additional country/region strings and abbreviations:

Country/region stringAbbreviationEquivalent locale name
americaUSAen-US
britainGBRen-GB
chinaCHNzh-CN
czechCZEcs-CZ
englandGBRen-GB
great britainGBRen-GB
hollandNLDnl-NL
hong-kongHKGzh-HK
new-zealandNZLen-NZ
nzNZLen-NZ
pr chinaCHNzh-CN
pr-chinaCHNzh-CN
puerto-ricoPRIes-PR
slovakSVKsk-SK
south africaZAFaf-ZA
south koreaKORko-KR
south-africaZAFaf-ZA
south-koreaKORko-KR
trinidad & tobagoTTOen-TT
ukGBRen-GB
united-kingdomGBRen-GB
united-statesUSAen-US
usUSAen-US

Locale Names, Languages, and Country/Region Strings
Language Strings
setlocale, _wsetlocale
_create_locale, _wcreate_locale

Show: