Sublime Forum

Can you save unsaved files with their original encoding?

#1

Hi,

For example, I opened a file that has UTF-8 With BOM encoding, I modified the file, then closed the editor without saving the file. But the next time I open the editor and save that file, the file encoding were changed to UTF-8 (Without BOM).

So my question is, can you remember the file’s original encoding, and save unsaved file with that encoding?

I understand Sublime Text is using the ‘default_encoding’ to save the unsaved file, I can aslo set the default_encoding for Plain Text file or any other file type. But wouldn’t be better to use the file’s original encoding?

0 Likes