You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Activity
formulahendry commentedon Oct 30, 2016
You may try below two options for this issue:
1.Use chcp to set code page of consloe
2.Run it in built-in terminal to see if it works (I have not tested it, but should work)
yufengzjj commentedon Oct 30, 2016
only set running in terminal works.
if it can run normally not in origin terminal it would be great.
formulahendry commentedon Oct 30, 2016
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?yufengzjj commentedon Oct 30, 2016
default codepage 936

----main.py---
print("呵呵")
output:
formulahendry commentedon Oct 30, 2016
Could you please try run
py ***
andchcp 65001 & py ***
in OS terminal (cmd?)yufengzjj commentedon Oct 31, 2016
same main.py:


run chcp 65001 & py -3 main.py:
formulahendry commentedon Nov 28, 2016
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?
yufengzjj commentedon Nov 28, 2016
it works:

xcf007 commentedon Sep 15, 2017
java的输出也乱码
formulahendry commentedon Sep 15, 2017
@xcf007 Did you try these two methods? #25 (comment)
xcf007 commentedon Sep 15, 2017
"code-runner.runInTerminal": true
谢谢,这个可以了。另外 JAVA_HOME没设置,这个不想全局修改环境变量,再vsc里可以配吗,我java.home配置了没起作用
formulahendry commentedon Sep 15, 2017
You could set Java path in below settings:
fusen-github commentedon Dec 13, 2017
如何设置,既能支持python3,又可以输出中文?
blurhead commentedon Feb 15, 2019
export PYTHONENCODING=utf8 && python fileName, it works for me in macOS
iamhectorotero commentedon Jul 6, 2020
Did you mean to type
@blurhead?
Antecer commentedon May 16, 2024