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 Desktop
Packages, which is subscribed to gedit in Ubuntu.
https://bugs.launchpad.net/bugs/1067915

Title:
  gedit can't open a txt file

Status in “gedit” package in Ubuntu:
  Confirmed

Bug description:
  I have a txt file with a list of pages of different sites (related to my 
work). It is generated by Firefox plugin "Webmaster Sape". 
  When I try to open it with gedit I see an error message: "Unknown error: 
Invalid byte sequence in conversion input".

  But for ex. Geany and LibreOffice Writer open it without any problems.

  File is attached.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: gedit 3.6.0-0ubuntu1
  ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
  Uname: Linux 3.5.0-17-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.6.1-0ubuntu3
  Architecture: amd64
  Date: Thu Oct 18 00:40:24 2012
  ExecutablePath: /usr/bin/gedit
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20121006)
  ProcEnviron:
   LANGUAGE=ru_UA:ru
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=ru_UA.UTF-8
   SHELL=/bin/bash
  SourcePackage: gedit
  UpgradeStatus: No upgrade log present (probably fresh install)

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to