I’ve been facing a similar issue. For me the problem was that the
encoding of the file had changed since it was last opened with Gedit
(from WINDOWS-1252 to UTF-8). As I had manually set the encoding when
first opening the file, Gedit had saved this information and tried to
reuse it the next time I opened the file after the encoding change; this
resulted in said error message.

To fix the problem, I had to remove the saved encoding information from
the gvfs metadata like so:

    gvfs-set-attribute --type unset MY_FILE.txt 'metadata::gedit-
encoding'

I have posted more information on this at
<http://askubuntu.com/a/279820/137449>.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1067915

Title:
  gedit can't open a txt file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1067915/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to