操作系统如何处理不同的字符编码?

发布于 2025-02-02 02:37:49 字数 390 浏览 1 评论 0原文

我的操作系统是中文Win10系统,因此其字符编码应该是GBK的使用,但是如果我打开了编码TXT文件的UTF-8,它仍然能够显示正常的内部汉字。但是,当我将文件放入英语Win10虚拟机中打开TXT文件时,文本显示已更改。为什么会发生这种情况?操作系统如何处理字符编码?操作系统编码和TXT文件字符编码关系是什么?

编辑:我使用记事本打开文件。 在英语系统中

My operating system is Chinese win10 system, so its character encoding should be the use of GBK, but if I open UTF-8 encoding TXT file, it is still able to display the normal inside Chinese characters. But when I put the file into an English Win10 virtual machine to open the TXT file, the text display has changed. Why is this happening? How does the operating system handle character coding? Operating system encoding and TXT file character encoding relationship is what?

edit: I use notepad to open the file.
in english system

in chinese system

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文