Can command prompt display unicode characters?

后端 未结 5 600
不知归路
不知归路 2021-01-20 01:49

For example:

cout << \"你好\" << endl;
5条回答
  •  孤街浪徒
    2021-01-20 02:31

    The Windows console supports Unicode, partially. It does not support, for example, right-to-left languages.

    Your example with cout does not output unicode. Use wcout instead. Or use WriteConsoleW

提交回复
热议问题