问题
Where can I find information about which code page is default for each language version of Windows? I.e the "ANSI" code page for each language version.
I've found the Code Pages Supported by Windows, but I cannot find the defaults for each language.
I'm guessing that for instance, Windows-1253 (Greek) is the default when installing the Greek language version. But what about the other code pages? And is Windows-1253 the default for any other language version?
回答1:
You can enumerate all the locales (using EnumSystemLocales/EnumSystemLocalesEx), then get the ANSI code page (GetLocaleInfo/GetLocaleInfoEx with LOCALE_IDEFAULTANSICODEPAGE).
来源:https://stackoverflow.com/questions/3864240/default-code-page-for-each-language-version-of-windows