PyCharm 2019.2 Help

Configuring Output Encoding

PyCharm creates files using the IDE encoding defined in the File Encodings page of the Settings / Preferences dialog Ctrl+Alt+S. You can use either the system default or select from the list of available encodings. By default, this encoding affects console output. If you want the encoding for console output to be different from the global IDE settings, configure the corresponding JVM option:

  1. On the Help menu, click Edit Custom VM Options.

  2. Add the -Dconsole.encoding option and set the value to the necessary encoding. For example: -Dconsole.encoding=UTF-8

  3. Restart PyCharm.

For more information, see Configuring JVM options.

Last modified: 6 November 2019