Sublime Text 2 - Encoding UTF-8

43

7

user216268

Posted 2013-04-11T18:00:32.280

Reputation: 531

1As i experiences sublime ,it have some issue with showing UTF-8 ,but it save theme just fine. – None – 2013-04-11T18:08:26.010

Answers

44

Just go to File → "Save with encoding" and select your preferred encoding.

BlaShadow

Posted 2013-04-11T18:00:32.280

Reputation: 625

4@interlude water is wet – aug – 2016-06-08T22:26:02.427

3@aug I have no idea why I wrote that comment 3 years ago. – interlude – 2016-06-11T12:22:48.097

this will change file encoding. – interlude – 2013-05-05T20:46:34.550

24

If you want to set UTF-8 as your default encoding, you can also do this:

Preferences -> Settings - User -> Add this line of code

"default_encoding": "UTF-8",

Save.

Conor

Posted 2013-04-11T18:00:32.280

Reputation: 341

1Looks like it's "UTF-8 with BOM" for with BOM. – ruffin – 2014-11-05T14:34:22.980

3Just to make sure... "UTF-8" means "UTF-8 without BOM" right? I assume it would be "UTF-8 BOM" or something like that otherwise – dominicbri7 – 2013-08-01T13:37:03.317

3

This is the correct configuration:

{
    "Default_encoding": "UTF-8",
    "font_size": 9,
    "ignored_packages":
    [
        "Vintage"
    ]
}

Silvano Junior

Posted 2013-04-11T18:00:32.280

Reputation: 31

Please note that this is an English speaking site so your answers should be in English. You also do not need to put a signature in your answer as your name automatically appears below the answer. Welcome to Superuser. – Mokubai – 2014-04-16T19:09:15.000