Sublime Forum

Issues to set charset encoding

#1

It takes by default charset encoding is UTF-8-BOM which wrong.

How should i change this in sublime.

UTF-8-BOM generating (\ufeff) character at browser after rendering the code (Inside of body tag and Out side html).

Currently I have changed from Notepad++ but its not solution.

I am using latest version of sublime text

0 Likes

#2

Sublime Text encodes files as utf-8 without BOM by default as utf-8 is said backward compatible with ascii. The BOM is/was used by several legacy programs to mark files to contain unicode.

If you see UTF-8 with BOM in the status bar the open file originally contains the BOM. Notepad++ (a legacy program :wink: ) adds the BOM to all utf-8 files by default.

To remove the BOM just File > Save with Encoding… > UTF-8

0 Likes