Bug 2768 - Wrong detection of charset in Youtube notification e-mail
Summary: Wrong detection of charset in Youtube notification e-mail
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins/Fancy (show other bugs)
Version: 3.9.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2012-10-30 20:13 UTC by Dan
Modified: 2012-12-04 17:31 UTC (History)
0 users

See Also:


Attachments
Youtube notification with wrong charset (65.56 KB, image/png)
2012-10-30 20:13 UTC, Dan
no flags Details
Raw message from youtube (9.01 KB, text/plain)
2012-12-04 16:44 UTC, Dan
no flags Details

Description Dan 2012-10-30 20:13:08 UTC
Created attachment 1177 [details]
Youtube notification with wrong charset

Salvatore, I know what's happening with Fancy and Youtube notification e-mail. Fancy is detecting the wrong charset:

fancy_viewer.c:141:using windows-1252 charset

where it should detect it as UTF8 since Youtube e-mail uses UTF8 as charset. Here it's the meta tag:

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

So do you have a fix for this?

Ps: this only happens with Youtube notifications.
Comment 1 Ricardo Mones 2012-12-04 09:10:36 UTC
Can you attach the raw file of one of these mails? You can obscure email addresses, server names/addresses or even content between boundaries you don't want to expose, of course, those are not important.

Anyway I suspect this is a bug of Youtube: the wrong displayed chars are just one char, like ISO-8859-1 displayed as UTF-8. If they were UTF-8 displayed as ISO-8859-1 they should be two wrong chars.
Comment 2 Dan 2012-12-04 16:44:46 UTC
Created attachment 1200 [details]
Raw message from youtube

Hi Ricardo! It's attached.

A way to fix it is simply changing the line (notice the broken '">':

    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8=
">

to this:

    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8=">
Comment 3 Ricardo Mones 2012-12-04 17:31:45 UTC
The change you mention doesn't fix anything here (CVS version), but if I change the head line to:

<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-1=
">

It renders perfectly, as the HTML is in fact ISO, not UTF-8.

Sorry, but I'm afraid this is a Youtube generator bug.

Note You need to log in before you can comment on or make changes to this bug.