Home > Back-end >  The string output garbled
The string output garbled

Time:12-09

String PI="friend";
Cout & lt;
Results show that the garbled words is how to return a responsibility?

CodePudding user response:

Because it is Chinese characters

CodePudding user response:

The
refer to the original poster pgy_yf response:
string PI="friend";
Cout & lt;
Results show that the garbled words is how to return a responsibility?

Under normal circumstances also can output the man, you are a Chinese system?

CodePudding user response:

VS2015 test no problem, can output characters

CodePudding user response:

Codeblock, no Chinese version, but in theory it should be right ah, why garbled words

CodePudding user response:

Vs2019 said can output,

CodePudding user response:

Terminal code wrong, to baidu, terminal area code and code writing code is not a thing

CodePudding user response:

The word if your IDE coding is wide character encoding, and then your terminal is utf-8 certainly will be garbled,
Ensure the editor code and terminal display code consistent is not gibberish,

CodePudding user response:

Troubleshoot your coding environment coding format and encoding format of the display terminal,
  • Related