PyCharm 2018.3 Help

Configuring Output Encoding

PyCharm creates files using the IDE encoding defined in the File Encodings page of the Settings(Ctrl+Alt+S) dialog. You can use either the system default or select from the list of the available encodings. This encoding also affects consoles output.

It is possible that encoding used in the console output is different from the IDE default. To have PyCharm properly parse text in the console, you have to do some additional editing.

Set up encoding for the console output

Open PYCHARM_HOME/bin/pycharm.exe.vmoptions or PYCHARM_HOME/bin/pycharm.vmoptions for editing and add the following line at the bottom:

-Dconsole.encoding=<encoding name>

For example: -Dconsole.encoding=UTF-8

Open Info.plist located in /Applications/PyCharm.app/Contents, find the tag <key>VMOptions</key>, and modify it as follows:

<key>VMOptions</key> <string>-Xms16m -Xmx512m -XX:MaxPermSize=120m -Xbootclasspath/p:../lib/boot.jar -ea -Dconsole.encoding=<encoding name> </string>

Last modified: 14 December 2018

See Also

Reference:

Concepts: