PyCharm provides individual approach to encoding and suggests the following major ways to change encoding:

PyCharm also supports configuring encoding for properties files.

  1. Open Project Settings dialog and select File Encodings.
  2. The File/Directory column shows the tree view of your project. The Default Encoding column shows encoding for directories or files. Click the Default encoding column for a directory or file you want to define encoding for, and then choose the desired encoding from the drop-down list:


    Click thumbnail to view larger image.

  1. Open the desired file in the editor.
  2. Change explicit encoding information. Use error highlighting to recognize wrong encoding and press Ctrl+Space to have a list of available encodings displayed:

    encoding3.png

  1. Open the desired file for editing editor.
  2. Do one of the following:
    • On the main menu, choose File | Reload <current encoding> in another encoding.
    • Click file encoding on the Status bar to show the list of available encodings.
  3. Select the desired target encoding from the submenu.

    encoding2.png

See Also

Concepts:

Procedures:

Reference:

Web Resources: