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

output has ��

Open lizhuoyuan opened this issue 6 years ago • 5 comments

image

My file name and class name are different , so I will get an error . I know. but the utf8(maybe only chinese) is � how to fix it

lizhuoyuan avatar Nov 17 '18 16:11 lizhuoyuan

have you resolved that old bro?

CoderKontar avatar Jan 11 '19 05:01 CoderKontar

If the output here is the result of the code running, there is no problem. If it is the system content, for example, if there is a problem with the prompt code, it will be garbled.

lizhuoyuan avatar Jan 11 '19 10:01 lizhuoyuan

现在好像还不行,除非在终端输出

Bergv avatar May 18 '19 02:05 Bergv

See https://github.com/formulahendry/vscode-code-runner/issues/271#issuecomment-372330573:

For stdin support and encoding issue, please use the below setting (File->Preference->Settings) to run code in Integrated Terminal:

{
  "code-runner.runInTerminal": true
}

wenfangdu avatar Aug 26 '21 03:08 wenfangdu

See #271 (comment):

For stdin support and encoding issue, please use the below setting (File->Preference->Settings) to run code in Integrated Terminal:

{
  "code-runner.runInTerminal": true
}

That is right!!!👍

x-strong avatar May 08 '22 18:05 x-strong