如何在c中显示任意字符?
警告 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您(显然)使用 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).