VSCode Chinese garbled

vscode menu bar: File >> Settings >> Preferences

search for:

"files.autoGuessEncoding": false,

Read:

"files.autoGuessEncoding": true,

Modify task.json, add the option that period:

{
    "version": "0.1.0",
    "command": "python",
    "isShellCommand": true,
    "args": ["${file}"],
    "showOutput": "always",
    "options": {
        "env":{
            "PYTHONIOENCODING": "UTF-8"
          }
      }
}

Guess you like

Origin www.cnblogs.com/hankleo/p/11570643.html