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"
}
}
}