How to change Default Encoding in Sublime Text 3

Asked

Viewed 6,927 times

5

In my work, we program in PHP mainly and all the code files were made in ASCII, I’m making some inclusions of pages and I often need to open the existing files and add new things.

I do this through Notepad++, because every time I open one of the existing codes in Sublime, it changes the whole charset and Download the whole page.

How do I mute the Sublime charset to always open the file charset? Or change the sublime charset to forever ASCII?

1 answer

7


To change the encoding of sublime, go in Preferences>Settings, search for default_encoding, after this put the parameter in the user configuration area and indicate the encoding desired.

Another item that may be useful in your case is to make visible the encoding in the sublime, for this, also in Preferences>Settings, look for show_encoding, put the parameter in the user’s configuration area and change the value to true.

Below are some images:

Opening the settings:

Abrindo configurações

Default encoding:

inserir a descrição da imagem aqui

Changing encoding:

inserir a descrição da imagem aqui

Button show encoding:

inserir a descrição da imagem aqui

Clicking on the encoding:

inserir a descrição da imagem aqui

  • I just tested, it worked perfectly, thank you very much xD ?

  • I did a quick search here, saw that in his preferences have options encoding, I did not take the test to see if it works, today I can only validate later. Vscode settings are in File>Preferences>Settings, search for encoding.

  • I just tested and it worked, "files.encoding", Thank you so much for helping 0/

  • @Luisfelipe ^^ ;)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.