Can command prompt display unicode characters?

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

For example:

cout << \"你好\" << endl;
5条回答
  •  南方客
    南方客 (楼主)
    2021-01-20 02:33

    It depends on the platform and on the encoding of the command prompt.

    That said, you might have more luck with

    std::wcout << L"你好" << std::endl;
    

提交回复
热议问题