CotEditor supports all text encodings available on macOS. However, the priority of text encodings can vary depending on the language and use case. By customizing the text encoding priority list, you can give higher priority to the encodings you use most often.
CotEditor has a powerful automatic detection feature that determines the text encoding of a document when you open it. During automatic detection, CotEditor tries encodings in order from the top of the customizable priority list. By rearranging the list, you can prioritize specific encodings during automatic detection. You can also insert separators, add special encodings, or remove encodings that you don’t want to use for automatic detection.
The text encoding priority list is also used to determine the order of items displayed in the Text Encoding menus in the Format menu and the status bar.
Go to the CotEditor app
on your Mac.
Choose CotEditor > Settings, then click Format.
Click the Edit List button in the “Encoding priorities” section.
Do any of the following:
Change priority: Move up the encodings you use frequently.
Add a text encoding or a separator: Select the item at the location to insert, click the Add + button, then choose the item to add.
Remove items in the list: Select the items to remove, then click the Delete - button.
Restore the list to the default: Click Restore Defaults.
Click OK.
Encodings not on this list aren’t considered candidates for the automatic encoding detection when opening documents. Keep encodings on the list that you want to use as candidates for encoding detection, even if you don’t use them directly.
“Unicode (UTF-8)” and “Unicode (UTF-8) with BOM” can’t be removed from the list and are always handled as a set. Because the BOM (byte order mark) is taken into account when interpreting data as UTF-8, there is no effect on the detection precision that the order of these two encodings is fixed.
Place “Unicode (UTF-16)” after other commonly used encodings, because UTF-16 can represent a wide range of characters and may match text more easily than expected.