Can command prompt display unicode characters?

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

For example:

cout << \"你好\" << endl;
5条回答
  •  隐瞒了意图╮
    2021-01-20 02:42

    It all depends on the console/shell you are using.

    Some shells can be configured to use UTF-8 (I did it once a long time ago) so it can be done but I forget the details.

    Before anbody can really be more specific we need to know the shell you are using and under what platform the shell is running (with full details about versions of each).

提交回复
热议问题