CLion 2017.3 Help

Keymap:

Encoding

Different types of files use different ways to define encoding. CLion recognizes encoding of files based on their contents.

Encoding has influence on the way CLion reads or writes files. If a file has been modified but not yet saved, any changes in encoding affect file writing; if a file has not been modified, then reading is affected. CLion suggests specific ways to change encoding of a file according to its type, using File Encodings Settings page, the Status bar, or the editor.

Encoding applies to directories and individual files. The encoding information saved in a file overrides the default encoding; encoding of a file or subdirectory overrides encoding settings on the higher levels.

Encoding

Can be changed in

File encoding is specified within the file, for example, in XML.

If a file contains explicit encoding declaration, you can change it in the Editor. In this case CLion provides code completion.

File encoding is defined by BOM.

In this case, you can't change encoding with which CLion reads the file, but it is still possible to change encoding for writing such file.