Ubuntu – How to set default encoding for non UTF encoded documents system wide

encodinggedit

The title says pretty much most of it – I have some windows txt files, and most of them are Bulgarian with encoding windows-1251. When I open them (sublime, gedit, desktop generated icons) the files are with windows-1252 (western Europe) I can manually select the file encoding, but it get pretty much tiresome after some time.

So, how to set default encoding for non UTF encoded documents?

Best Answer

Just set the encoding in a terminal by entering this line:

gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8', 'WINDOWS-1251', 'CURRENT', 'ISO-8859-15', 'UTF-16']" 
Related Question