如何在c中显示任意字符?

发布于 2024-09-27 23:39:14 字数 173 浏览 0 评论 0原文

警告 C4566:所表示的字符 通过通用字符名称 '\u2E81' 不能在当前的情况下表示 代码页(936)

有时我们需要显示各种语言的文本,例如俄语、日语等。

但似乎单个代码页只能显示一种语言的字符,如何同时显示多种语言的字符?

warning C4566: character represented
by universal-charac ter-name '\u2E81'
cannot be represented in the current
code page (936)

Sometimes we need to display text in various languages such as Russian,Japanese and so on.

But seems a single code page can only show characters of 1 single language ,how can I show characters in various languages at the same time?

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

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

发布评论

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

评论(1

叶落知秋 2024-10-04 23:39:14

由于您(显然)使用 VC++,因此您可能想要切换到 UTF-8 代码页。您还需要将字体设置为包含您关心的所有代码点的字形(许多代码点除了前 256 个之外几乎没有)。

Since you're (apparently) using VC++, you probably want to switch to the UTF-8 code page. You'll also need to set the font to one that has glyphs for all the code points you care about (many have few if any beyond the first 256).

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