vscode-code-runner icon indicating copy to clipboard operation
vscode-code-runner copied to clipboard

The inscriptions contain Cyrillic, not readable. Instead, diamonds with question marks.

Open devZu9 opened this issue 5 years ago • 5 comments

  • VS Code Version: 1.39.2
  • OS Version: Windows 10 x64 (10.0.17763)
  • Code Runner Version: 0.9.14
  • Python Version: 3.7.2

Describe the bug The inscriptions contain Cyrillic, not readable. Instead, diamonds with question marks.

To Reproduce Steps to reproduce the behavior:

  1. print('Привет хозяин')
  2. run

Actual behavior [Running] python -u "e:\py\bankiboom\script.py" 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)] C:\Users\MXM\AppData\Local\Programs\Python\Python37\python.exe ������, ��� ������, ������

[Done] exited with code=0 in 0.294 seconds

Expected behavior They must be written inscriptions in Russian. Most likely the program is not aware that the output encoded UTF8.

Screenshots https://imgur.com/a/jlYiqvi

devZu9 avatar Oct 26 '19 00:10 devZu9

Does anybody manage to solve this? Same exact issue for me. By the way Cyrillic letters shows fine if run JavaScript file.

mezhgano avatar Feb 12 '22 15:02 mezhgano

Anyone can help? I have the same issue

kydex avatar Apr 22 '22 01:04 kydex

Anyone can help? I have the same issue

I'm using built-in Code Run function (Ctrl+F5)

mezhgano avatar Apr 22 '22 21:04 mezhgano

Spent few hours trying to fix this issue on a WIndows machine, eventually found this solution and can confirm both suggested options worked for me: https://stackoverflow.com/questions/57834398/visual-studio-code-cant-encode-cyrillic-characters-in-output

sergeykonovalov avatar Nov 16 '23 07:11 sergeykonovalov

Apparently same issue as https://github.com/formulahendry/vscode-code-runner/issues/562

sergeykonovalov avatar Nov 16 '23 07:11 sergeykonovalov