How to get PyCharm to display Unicode data in the console?

I switched to PyCharm and got a blast using it. I encode projects that use languages ​​other than English (i.e. Hebrew and Arabic), and I need to debug encodings from time to time. For some reason, PyCharm does not display Unicode characters in its debug console.

I set the IDE encoding to UTF-8, but that didn't help.

Any ideas?

+6
source share
2 answers

You need to change the console font to the one that contains the necessary Unicode characters:

console font

+8
source

The accepted answer is no longer correct. Of the standard fonts, none of them matter. I just spent some time on this problem and the best solution is to change your .bash_profile (or .zshrc) and include the line:

export PYTHONIOENCODING=UTF-8 

In theory, you can also add this to your environment variables, which you can set from Preferences-> Build, Execution, Deployment-> Python Console This approach, however, seems to be broken in the assembly I'm using (4.0.4)

+9
source

All Articles