Adrian
Adrian

Reputation: 15

Why can't VSCode recognize Chinese?

I'va already set "files.autoGuessEncoding": true in setttings.json. And altough I manually changed the UTF-8 on the lower right corner of the interface to GB18030 or GBK, it still didn't work.

Chinese characters show as ����

Upvotes: 0

Views: 2273

Answers (1)

Molly Wang-MSFT
Molly Wang-MSFT

Reputation: 9521

Add this in Settings.json would solve this question:

"code-runner.executorMap": {
    "python": "set PYTHONIOENCODING=utf8 && python -u",
}

enter image description here

Upvotes: 2

Related Questions