VSCode中国の文字化け

vscodeメニューバー:ファイル>>設定>>環境設定

検索:

"files.autoGuessEncoding": false,

読みます:

"files.autoGuessEncoding": true,

task.jsonを変更し、その期間のオプションを追加します。

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

おすすめ

転載: www.cnblogs.com/hankleo/p/11570643.html