Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I did some research over this issue and realized that everyone was suggesting to use iconv or recode to change the encoding of the file to UTF-8. The thing is that I do not want to change the encoding of the file. I just want to use gedit in order to edit the file (my file's encoding is iso-8859-7) and save it using the same original encoding. Is there a way to do that?

I know for a fact that Kate has a menu option that lets you determine the encoding of the file. Even the default text editor of Windows (!!!!!!!!!!), notepad, allows you to select the encoding. I mean, I like having an extensible default text editor and all, but there are some features that are not optional.

share|improve this question
    
The thing is that this plugin changes the encoding. I do not want to change the encoding :S –  Lim Arctan Sep 26 '11 at 11:07
add comment

2 Answers

up vote 2 down vote accepted

I found Character Encoding option on gedit Save As.. dialog and it seems you have to add your desired encoding. I think setting up Character Encoding to automatically detected will do what you desire after you add your encoding to the roster.

enter image description here

enter image description here

enter image description here

Or you can use geany for text editing as well which is quite nice.

share|improve this answer
add comment

Gnome developers often value simplicity over features, while KDE developers prefer more features even if it make the program unsuitable for 3-year-olds :)

There is an old ticket requesting this feature, if you have a read you'll see that Gedit has some sort of encoding auto-detection which, unfortunately, is not always perfect. Since 2009 there's a patch adding Encodings menu though it doesn't look it's going to be accepted. In fact, the 'patch' seems to be a plugin for gedit written in Python - you may see if it's possible to install it, though it may be outdated.

So, if you need this feature - kate is a perfectly good replacement for gedit and has many nice features apart from the ability to change document's encoding.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.