After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 212631 - should autorecognize broken windows charsets
should autorecognize broken windows charsets
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
pre-1.5 (obsolete)
Other All
: Normal enhancement
: ---
Assigned To: Jeffrey Stedfast
Evolution QA team
Depends on:
Blocks: 216290
 
 
Reported: 2001-10-16 00:03 UTC by Dan Winship
Modified: 2013-09-10 14:02 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Dan Winship 2001-10-16 00:03:00 UTC
Evolution should automatically figure out when a message you
received claims to be iso-8859-1 (or whatever), but is really
Windows crap.

No iso-8859 charsets have characters in the 128 to 159 range, but
the windows ones do. We may not want to check every message for
this though. Perhaps we could just check X-Mailer/User-Agent and
only do it for Outlook+OE.
Comment 1 Not Zed 2001-12-08 01:18:07 UTC
We already scan all message content to convert it to utf8, the check
would be relatively easy.
Comment 2 Jeffrey Stedfast 2001-12-17 23:45:12 UTC
ok, so I've started hacking this - but what should I do if I find a
message that uses a Windows fake-charset?
Comment 3 Jeffrey Stedfast 2001-12-17 23:52:36 UTC
note to self: http://czyborra.com/ has a list of charsets and stuff.
Comment 4 Jeffrey Stedfast 2001-12-18 00:21:26 UTC
okay, so according to his page it seems that this only affects
iso-8859-* charsets and all of them should be able to be mapped to
windows-cp1252 so it was pretty simple.

Does anyone have any messages of this type so I can test?
Comment 5 Jeffrey Stedfast 2001-12-18 01:20:41 UTC
okay...so I misread... here's the real mapping:

iso-8859-1 maps to windows-cp1252
iso-8859-2 maps to windows-cp1250
iso-8859-5 maps to windows-cp1251
iso-8859-6 maps to windows-cp1256
iso-8859-7 maps to windows-cp1253
iso-8859-8 maps to windows-cp1255
iso-8859-9 maps to windows-cp1254
iso-8859-13 maps to windows-cp1257
Comment 6 Dan Winship 2001-12-18 02:05:20 UTC
Well, as you saw, I tried sending you some messages, but it
didn't work. Perhaps it only works on old versions of windows/
outlook/oe?
Comment 7 Dan Winship 2001-12-18 02:05:48 UTC
I know our admin/marketing people have sent such broken messages
before.
Comment 8 Jeffrey Stedfast 2002-01-16 18:44:16 UTC
Btw, this is still open because I haven't yet been able to test this
functionality, although I suspect that it should work.
Comment 9 Jeffrey Stedfast 2002-01-22 19:19:11 UTC
marking as 1.1.0 since mostly this just needs to be tested and maybe
slight cleanups but other than that it is already "there"
Comment 10 Jeffrey Stedfast 2002-01-24 21:54:21 UTC
seems to work...