Fixing wrong charset on gedit

If you have problems with charset when you’re editing documents on GEdit, you can fix it changing encoding settings on Gnome environment. For it, use this:

[bash]

gsettings set org.gnome.gedit.preferences.encodings auto-detected “[‘UTF-8’, ‘WINDOWS-1251’, ‘CURRENT’, ‘ISO-8859-1’]”[/bash]

However, you need to check your system locale, on Debian based you can use dpkg-reconfigure for it:

[bash]sudo dpkg-reconfigure locales [/bash]

References

http://askubuntu.com/questions/110511/how-to-set-default-encoding-for-non-utf-encoded-documents-system-wide

https://developer.gnome.org/gio/stable/GSettings.html