python3.5.2

You may try below two options for this issue:
1.Use chcp to set code page of consloe
{
"code-runner.executorMap": {
"python": "chcp 65001 | py"
}
}
2.Run it in built-in terminal to see if it works (I have not tested it, but should work)
{
"code-runner.runInTerminal": true
}
only set running in terminal works.
if it can run normally not in origin terminal it would be great.
So the first method is not working? Could you show me the output? And could you try "chcp 65001 & py" and show me the output?
default codepage 936
----main.py---
print("呵呵")
output:

Could you please try run py *** and chcp 65001 & py *** in OS terminal (cmd?)
same main.py:

run chcp 65001 & py -3 main.py:

Hi @yufengzjj , this issue is similar to #33 , and @sunqi1993 has found a way to resolve it. Could you please have a try to see whether it works for you?
{
"code-runner.executorMap": {
"python": "set PYTHONIOENCODING=utf8 && python"
}
}

it works:

java的输出也乱码
@xcf007 Did you try these two methods? https://github.com/formulahendry/vscode-code-runner/issues/25#issuecomment-257123682
"code-runner.runInTerminal": true
谢谢,这个可以了。另外 JAVA_HOME没设置,这个不想全局修改环境变量,再vsc里可以配吗,我java.home配置了没起作用
You could set Java path in below settings:
"code-runner.executorMap": {
"java": "/foo/bar/java ****"
}
如何设置,既能支持python3,又可以输出中文?
export PYTHONENCODING=utf8 && python fileName, it works for me in macOS
Did you mean to type
export PYTHONIOENCODING=utf8
@blurhead?
Most helpful comment
Hi @yufengzjj , this issue is similar to #33 , and @sunqi1993 has found a way to resolve it. Could you please have a try to see whether it works for you?