Sublime Forum

File encoding preferences

#1

Hello guys,

I would like to suggest the following new general preferences in sublime text with regards to encoding.

# Sets the encoding when new files are created by sublime (i.e. CTRL+N or File->new).
# Could be one of 'system' or a valid encoding type.
newWithEncoding

# Sets the encoding of files that are opened by sublime text (i.e. CTRL+O or File->open...).
# Could be one of 'detect' or a valid encoding type.
openWithEncoding

# Sets the encoding of files that are saved with sublime text (i.e. CTRL+S or File->save).
# Could be one of 'detect' or a valid encoding type.
saveWithEncoding

----------TO GO WITH THE CURRENT----------

# The encoding to use when the encoding can't be determined automatically.
# ASCII, UTF-8 and UTF-16 encodings will be automatically detected.
fallbackEncoding Western (Windows 1252)

These general preferences could of course be overridden by the user pref file, and subsequently the per-type file. Although a UI component isn’t really necessary, it would be nice to have one along the bottom between the current language, and the line endings that shows the current encoding.

0 Likes