Is there any way to change the encoding of a file? For example UTF-8 to ISO 8859-1?
Setting Example Sublime Text:
"default_encoding": "UTF-8"
Is there any way to change the encoding of a file? For example UTF-8 to ISO 8859-1?
Setting Example Sublime Text:
"default_encoding": "UTF-8"
Apart from the settings explained in the answer by @DarkNeuron:
you can also specify settings for a specific language like so:
For example, I use this when I need to edit PowerShell files previously created with ISE (which are created in ANSI format):
You can get a list of identifiers of well-known languages here.
So here's how to do that:
Alternatively, you can change the setting globally in Workspace/User settings using the setting
"files.encoding": "utf8"
. If using the graphical settings page in VSCode, simply search forencoding
. Do note however that this only applies to newly created files.