How to change default Encoding in Sublime Text 3

1

In my work, we programmed PHP mostly and all the code files were made in ASCII, I'm doing some page inclusions and I often need to open the existing files and add new things.

I do this through Notepad ++, because whenever I open one of the existing Sublime codes, it changes the whole charset and buga the whole page.

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

    
asked by anonymous 26.04.2018 / 01:50

1 answer

2

To change the encoding of sublime , go to Preferences > Settings , search for default_encoding , then place the parameter in the configuration area of the user and enter the desired encoding .

Another item that may be useful for you is to make encoding visible in sublime , so in Preferences > Settings , search 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:

Defaultencoding:

Changingencoding:

ShowEncodingbutton:

Clickingonencoding:

    
26.04.2018 / 02:25