当前位置:网站首页>The problem of Chinese garbled code in the vscode output box can be solved once for life

The problem of Chinese garbled code in the vscode output box can be solved once for life

2022-07-05 06:37:00 Qingyun on the moon

VSCode Chinese garbled code in output box

problem

Changed a computer and installed vscode, When compiling, the Chinese output is garbled ????
The first thing to know is : The compiler needs to get the correct binary code , So you must know the encoding format .
compiler gcc By default UTF8 code , So use MinGW Chinese wide characters in the compiled source file must be saved as UTF-8 code .
Find tutorial emmm Inexplicably found are those who say that there is garbled code in the code itself ( That's funny ).

Solution modification

1. Need a more local format

Search area (w8/w10 Be the same in essentials while differing in minor points )
 Insert picture description here
 Insert picture description here

 Insert picture description here
 Insert picture description here
 Insert picture description here
Check Then the computer automatically restarts

Last result

Display has changed

 Insert picture description here
vscode The display is normal
 Insert picture description here

原网站

版权声明
本文为[Qingyun on the moon]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140602242311.html