Why unicode string is not shown on PyCharm's console?

前端 未结 2 1272
后悔当初
后悔当初 2020-12-18 14:19

Environment: Windows 8 + PyCharm 5.0 + Python 2.7.9

print \"123\" # OK

print u\"123\" # Show empty line on the console?

My \"File Encoding

2条回答
  •  心在旅途
    2020-12-18 14:58

    Add following line in the file "pycharm.exe.vmoptions" can fix the issue:

    -Dfile.encoding=UTF-8 
    

    It seems to be a bug from PyCharm 5.0...

提交回复
热议问题