如何手动确定当前操作系统的代码页和区域设置

发布于 2024-08-09 05:30:09 字数 102 浏览 3 评论 0原文

有没有办法让用户手动查找其 Windows 操作系统的当前代码页和区域设置?是否有存储该信息的注册表设置?

如果该技术一直适用于 Windows 2000,那么它也会很有用。

Is there a way that I manually have a user look up the current Codepage and locale 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

同展鸳鸯锦 2024-08-16 05:30:09

Win32 GetACP() 函数 返回到 Windows 2000 以查找 ANSI 代码页。

GetLocaleInfo() 函数也适用于 Windows 2000。使用 LOCALE_SYSTEM_DEFAULT(或 LOCALE_USER_DEFAULT 等)的区域设置参数调用它。

如果您的问题不是如何获取此数据以编程方式,而不是非程序员如何查找此信息,那么您可能想将问题发布在 ServerFault 上,这是提出问题的正确位置像那样。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文