Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to somehow make Gedit on my sister's laptop to open text files in Windows1250 (CP1250-Winlatin2) encoding by default.

She has a plenty of ebooks in txt format and opening them in LibreOffice is not much comfortable.

I need to use Gedit or some similar GTK app, which is fully accessible by Orca Screenreader.

PS: running Vinux (based on Ubuntu Lucid Lynx) - more info here:

Running Ubuntu Linux, the Ubuntu 10.04 (lucid) release.
    GNOME: 2.30.0 (Ubuntu 2010-03-31)
    Kernel version: 2.6.32-22-generic (#36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010)
    GCC: 4.4.3 (i486-Linux-gnu)
    Xorg: unknown (09 June 2010  10:55:28AM) (09 June 2010  10:55:28AM)
share|improve this question
up vote 5 down vote accepted

create executable script /usr/local/bin/geditwin

gedit --encoding=WINDOWS-1250 "$@"

and set it as default text editor in gnome. (right click on any text file, open with, remember...)

share|improve this answer
thank you very much. Works perfectly. :-) – Juhele Aug 15 '11 at 17:46
Great tip, thanks! – Tomasz Zieliński Jan 9 '12 at 21:52
+1 That's awesome. – Aaron Mar 6 '12 at 14:25

Your Answer


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.