R
R
roma671772021-07-12 16:48:13
Command line
roma67177, 2021-07-12 16:48:13

How to make Russian characters in VS Code console?

Code:
60ec47b4bbc0c007862173.png
Result in console:
60ec47c4a850f195047080.png

How to fix?

PS I run it via Ctrl+Alt+N (Code runner), the output is not in the Terminal, but in Output

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
roma67177, 2021-07-12
@roma67177

The problem was in the encoding of the Code Runner itself, because in a regular terminal everything was displayed normally.
In settings.jsonadded:

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question