Partager via


National Language Support (NLS) Registry Settings

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

To set the default locale for the system, you set the following registry value to a hexadecimal value that represents the default locale to use for the system.

[HKEY_LOCAL_MACHINE\nls]
  "DefaultLCID": REG_DWORD 

If this is not set, then the default is locale 0x409.

To override a locale's default original equipment manufacturer (OEM) code page, you must set the following registry value to a hexadecimal value that represents the default OEM code page to use instead of the one defined by the current locale.

[HKEY_LOCAL_MACHINE\nls]
  "DefaultOCP": REG_DWORD

If an invalid or unsupported OEM code page is supplied, then the default code of 437 is used for the system.

To override a locale's default ASCII code page, you must set the following registry value to a hexadecimal value that represents the default ASCII code page to use instead of the one defined by the current locale.

[HKEY_LOCAL_MACHINE\nls]
  "DefaultACP": REG_DWORD

If an invalid or unsupported OEM code page is supplied, then the default code of 1252 is used for the system.

For an example of these registry values, see Common.reg in Microsoft® Platform Builder.

See Also

Other Resources

Programming with Unicode and NLS