Press M for TOC
Press -> (next arrow key) for next posting
Press <- (previous arrow key) previous posting

PhpStorm – Configuring Encoding for properties Files

Configuring Encoding for properties Files

PhpStorm applies system default encoding to the properties file.

To use other encodings, feed them as escape sequences and Unicode. The other option is to define the default encoding for .properties files on the project level and use different API that can read properties files in the encoding you have defined.

To configure default encoding for properties files

  1. In the Settings/Preferences dialog Ctrl+Alt+S, click File Encodings under Editor. The File Encodings page opens.

  2. Do one of the following:
    • To have the special mode turned on when symbols are stored in a properties file as escape sequences but displayed as normal letters, check the option Transparent native-to-ascii conversion. This option is helpful when the properties files are encoded in ISO 8859-1. It is recommended to use this approach, if you don’t have any special reasons to change encoding.

    • In the field Default encoding for properties files, select the encoding that will be used for all properties files in project.

Leave a Reply

Your email address will not be published. Required fields are marked *