Skip to content Skip to sidebar Skip to footer

Why Unicode String Is Not Shown On Pycharm's Console?

Environment: Windows 8 + PyCharm 5.0 + Python 2.7.9 print '123' # OK print u'123' # Show empty line on the console? My 'File Encodings' already set to UTF-8, and I also add: '-

Solution 1:

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...

Solution 2:

Like Sean mentioned add the following line to file "pycharm.exe.vmoptions" and also "pycharm64.exe.vmoptions":

-Dfile.encoding=UTF-8

Close Pycharm if it's open. Then restart Pycharm5. It's a stupid bug.

Post a Comment for "Why Unicode String Is Not Shown On Pycharm's Console?"