PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

File Encodings

Last modified: 07 September 2023

PhpStorm uses these settings to view and edit files for which it was unable to detect the encoding and uses the specified encodings for new files.

The Editor | File Encodings settings

If PhpStorm can't determine the file or directory encodings, it falls back to the configured project encoding. If there is no project, PhpStorm uses the global encoding. File or directory encodings take precedence over the project encoding, which, in turn, takes precedence over the global encoding.

For more information about handling file encodings, refer to Encoding.