Windows-1252 代码页是否可以具有多字节字符?

发布于 11-27 06:22 字数 191 浏览 7 评论 0原文

我知道某些语言环境(例如远东语言环境)具有多字节字符集,其中需要多个字节来表示一个字符。

我想测试我的(ANSI)软件处理多字节字符的能力。

除了我住在北美,我的 Windows 代码页设置为 Windows-1252

是否可以在我的本地 Windows-1252 语言环境中构造多字节字符?

i know some locale's (e.g. Far East locales) have multi-byte character sets, where it takes multiple bytes to represent a character.

i'd like to test my (ANSI) software's ability to cope with multi-byte characters.

Except that i live in north america, where my Windows code-page is set to Windows-1252.

Is it possible to construct a multi-byte character in my local Windows-1252 locale?

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

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

发布评论

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

评论(2

硪扪都還晓2024-12-04 06:22:12

是否可以在我的本地 Windows-1252 语言环境中构造多字节字符?

我不相信代码页 1252 是可能的,但可以更改 Windows 用于非 Unicode 文本的编码,并且也可以使用类似 Applocale 实用程序 以在每个进程的基础上执行此操作。 (尽管 Applocale 确实有其缺点。)

当然,您始终可以将多字节字符作为二进制数据发送到您的软件,如果软件本身使用语言环境(以及使用什么编码来解析数据)的处理独立于操作系统。

Is it possible to construct a multi-byte character in my local Windows-1252 locale?

I don't believe it's possible with codepage 1252, but it IS possible to change the encoding Windows uses for non-Unicode text, and it's also possible to use something like the Applocale utility to do it on a per-process basis if you don't want to switch over the whole thing. (Though Applocale does have its failings.)

Of course, you could always just send the multibyte characters as binary data to your software, which would be most useful if the locale used in the software itself (and thus what encoding is used to parse the data) is handled independently of the OS's.

他夏了夏天2024-12-04 06:22:12

您可以使用 MS AppLocale 实用程序使用另一个工具来测试您的应用程序代码页而不改变你的。

You can use the MS AppLocale utility to test your app using another codepage without changing yours.

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