Valid UTF8 characters wrongly detected as invalid

Bug #1505367 reported by teo1978
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)
New
Low
Unassigned

Bug Description

I have a .sql text file which contains these two valid 3-byte utf-8 characters: 😍😜 (it's two smilies).
Not only Gedit doesn't display them correctly, it issues the warning:
"There was a problem opening the file ...
 The file you opened has some invalid characters. If you continue editing this file you could corrupt this document."
with the option to retry with a different character encoding.

The characters are then shown in red background as follows:
  \ED\A0\BD\ED\B8\8D\ED\A0\BD\ED\B8\9C

They are valid UTf-8

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: gedit 3.10.4-0ubuntu10
ProcVersionSignature: Ubuntu 3.19.0-30.33-generic 3.19.8-ckt6
Uname: Linux 3.19.0-30-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.5
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Oct 12 21:09:34 2015
InstallationDate: Installed on 2013-10-11 (731 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
SourcePackage: gedit
UpgradeStatus: Upgraded to vivid on 2015-08-15 (57 days ago)

Revision history for this message
teo1978 (teo8976) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in gedit (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.