开发者

How can I manually determine the CodePage and Locale of the current OS

Is there a way that I manually have a user look up the current Codepage and lo开发者_开发知识库cale of their windows OS? Is there a registry setting that stores that information?

It would also be useful if the technique worked all the way back to Windows 2000.


The Win32 GetACP() function works back to Windows 2000 to find the ANSI code page.

The GetLocaleInfo() function works also back to Windows 2000. Call it with a Locale parameter of LOCALE_SYSTEM_DEFAULT (or LOCALE_USER_DEFAULT, etc.)

If your question is not how you can get this data programmatically, but instead how a non-programmer can look up this info, then you probably want to post the question on ServerFault which is the right spot for questions like that.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜