Online did not find a useful way, and finally found in a tutorial B station
Set – & gt; select workspace – & gt; search encoding – & gt; set to GBK
Principle: the default encoding of CMD is GBK, and the default encoding of vscode is UTF-8. Just change the default encoding of vscode’s current workspace, which will not affect other projects.
Read More:
- Python – [encoding] in Python os.system Solution to Chinese garbled code when calling CMD command
- Debugging failed under vscode Ubuntu, unable to open libc-start. C raise. C, etc
- Solve the problem of Chinese garbled code of actibpm plug-in in idea
- Solution of Chinese garbled code when using QT
- Solving the problem of Chinese garbled code in qtring
- Solving Chinese garbled code in Java compressed file
- Solution of Chinese display garbled code in Git Bash
- How to set vscode interface to Chinese
- The use of Chinese characters in Qt and the solution to the “error C2001: newline in constant” problem
- C language string processing error warning, c4996, sprintf, predicted, c4996, strcpy, c4996, strcat
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- A fatal error C1083 occurred when compiling C + + code under. Net: unable to open the include file: “xuhk”_ Jnihelloworld. H “: solution to no such file or directory error.
- Solution to the problem of Chinese garbled in gradle console in idea
- Python calls C to generate so library and reports an error: undefined symbol
- Solutions to the problem of “collect2.exe: error: LD returned 1” exit “status when writing C + + with vscode
- Cnpm appears in the vscode terminal: unable to load the file C: \ “users \” gkk \ “appdata \” roaming \ “NPM \” cnpm
- Anaconda Matplotlib drawing Chinese garbled solution
- Resttemplate Chinese garbled problem – available
- Vscode cnpm: unable to load file, but open console with CMD without error
- Vscode running C program error luanch:program does not exsist