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:


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]