Solve the problem that the output cannot be compiled or is garbled when the output contains Chinese in Visual Studio 2019

Problem Description

Insert image description here

Solution

method one

Change all Chinese characters to English.

Method Two

If you still want to display and output Chinese, you need to modify the encoding format of the file.
The details are as follows:
文件--》高级保存选项
Insert image description here
Insert image description here
Insert image description here
Insert image description hereInsert image description here
Insert image description here

Problems during operation

There are no advanced save options in the File menu drop-down list

Insert image description here
The solution is as follows:
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here

Advanced saving options are grayed out and cannot be used.

Insert image description here
Solution, in the content of the file currently to be changed encoding. Click the left mouse button. Then click 文件 in the menu bar. You can see that 高级保存选项 is available for use.
Insert image description here

Guess you like

Origin blog.csdn.net/adminstate/article/details/134870914