File encoding
Different types of files use different ways to define encoding. AppCode recognizes encoding of files based on their contents. Encoding has influence on the way AppCode reads or writes files. If a file has been modified but not yet saved, any changes in encoding affect file writing.
You can configure and change encoding for directories or files including the properties files.
AppCode lets you change encoding while you work in the editor. If you need to check encoding details and configure more options, use the Editor | Files Encodings page of the IDE settings ⌃ ⌥ S.
Configure encoding for a directory or a file without built-in encoding information
Press ⌃ ⌥ S to open the IDE settings and select
.The Path column shows a path to a file or a directory. The Encoding column shows the encodings. Click the specified encoding to change it. You can also add a new path, delete, or edit the existing one.
Change encoding of a file that contains explicit encoding
Open the desired file in the editor.
Change explicit encoding information. Use error highlighting to recognize wrong encoding and press ⌃ Space to have a list of available encodings displayed:
Change encoding of a single file that doesn't contain explicit encoding
Open the desired file for editing.
From the main menu, select status bar.
or click the file encoding on theSelect the desired encoding from the popup.
If or is displayed next to the selected encoding, it means that this encoding might change the file contents. In this case AppCode opens a dialog where you can decide what you want to do with the file: choose Reload to load the file in the editor from disk and apply encoding changes to the editor only, or choose Convert to overwrite the file with the encoding of your choice.