Replies: 1 comment 2 replies
-
这个输出不是乱码,是 utf8 的字符串。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
系统windows10,默认编码936。
我分别用cmd 和 powershell启动测试工程,在print(“中文输出”)时,控制台均显示乱码,
同样的环境,比如我执行nodejs程序,输出中文却是正常的。
后面我尝试先改控制台编码,再启动程序,中文显示正常,批处理如下:
不知道方不方便在代码层面做下兼容处理~
Beta Was this translation helpful? Give feedback.
All reactions