Gedit plugin for quickly changing the encoding of an open file
Manually selecting the encoding is a bit tiresome: You need to find the file, select the next encoding from the drop-down list and click on the open button. After that, if you're lucky, you can start editing. If not, you need to repeat the same steps again, although the file open dialog will already show the contents of the folder of the current document, it does not become much easier if there are a lot of files in the folder. An even more problematic situation is when you open a file in which, for example, the text in Russian is somewhere in the middle, and in the beginning is the English text. In such a situation, to make sure that the encoding was chosen correctly, you will have to spend time in order to play in the middle of the file :-(
Of course, this situation annoyed me and I decided to write my plugin. True, I did not have much time to write, I guessed to read the Dwarf Bugzilla. In it, Vladisla Gorbunov posted his own plugin, which allows you to change the encoding of an open file on the fly, without performing this tedious procedure.
After installing this plugin, the File menu will look like in the screenshot

How to install this plugin. Download the archive attached to this message (Bugzilla is buggy and successfully download the latest version, attached to this message is not always obtained). Unzip the contents of the archive into the ~ / .gnome2 / gedit / plugins / folder . Open Gedit and in the dialog Edit - Options - Modules enable the pluginEncoding .
By the way, in Gedit 2.26 it is planned to add the ability to change the encoding of an open file on the fly (see RoadMap ).
UPD: In the comments, Jama suggested how to resolve the situation so that gedit opens cp1251 encoded files by default instead of koi8r.
gconf-editor
apps - gedit-2 - preferences - encodings - auto_detected
cp1251 put higher than koi8r