To solve the problem of garbled Chinese comments in VS, you need to set the project encoding to Unicode. The specific steps are as follows: Open VS, select "Advanced" > "Advanced Save Options". Select "Unicode (UTF-8 with BOM)" under "Encoding" and save the changes. Reload or build the project to fix garbled comments. For existing projects, change the File Code Page to 65001 (UTF-8) in Project Properties.
How to solve the problem of garbled Chinese comments in vs
When using Visual Studio (vs) to develop C# projects, sometimes There will be a problem with Chinese comments being garbled. This is because VS uses UTF-8 encoding by default, and Chinese comments need to use Unicode encoding. To resolve this issue, you need to set the project's encoding to Unicode.
The specific steps are as follows:
After setting the project encoding, reload or regenerate the project. At this point, Chinese comments should no longer appear garbled.
Tip:
The above is the detailed content of How to solve garbled Chinese comments in vs.. For more information, please follow other related articles on the PHP Chinese website!