Output unicode strings in Windows console app

后端 未结 11 1172
花落未央
花落未央 2020-11-21 11:20

Hi I was trying to output unicode string to a console with iostreams and failed.

I found this: Using unicode font in c++ console app and this snippet work

11条回答
  •  萌比男神i
    2020-11-21 11:58

    I had a similar problem, Output Unicode to console Using C++, in Windows contains the gem that you need to do chcp 65001 in the console before running your program.

    There may be some way of doing this programatically, but I don't know what it is.

提交回复
热议问题