Open Bug 227360 Opened 22 years ago Updated 3 years ago

Wrong character encoding when viewing message/rfc822 email from http source

Categories

(MailNews Core :: Backend, defect)

defect

Tracking

(Not tracked)

People

(Reporter: Martin.vGagern, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(4 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031127 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031127 When opening a location that provides mime type message/rfc822 and in this message an "text/plain; charset=iso-8859-1" body with some strange characters, those are not automatically displayed correctly. Usually my default character encoding, ISO-8859-15 is used, rendering for example german umlauts as two characters. Manually selecting UTF-8 encoding fixes the problem. I believe that the message encoding is internally translated to UTF-8, but the coding of the whole page is not automatically set correctly. Reproducible: Always Steps to Reproduce: 1. Open HTTP URL with message/rfc822 content Actual Results: 2. character coding is still at its default value 3. non-ASCII characters are rendered as multiple strange symbols Expected Results: 2. character coding automatically set corretly (i.e. UTF-8) 3. message displayed respecting the coding specification in the message header(s)
message/rfc822 to HTML conversion is done in mailnews code...
Assignee: other → sspitzer
Status: UNCONFIRMED → NEW
Component: Layout → Mail Back End
Ever confirmed: true
Product: Browser → MailNews
QA Contact: ian → esther
A multipart message with an HTML part described as Content-type: text/html; charset=iso-8859-1 (See Attachment 1 [details] [diff]) displays with weird characters on Mozilla Navigator (from a local or remote location), but it renders OK on Mozilla Mail and News and Thunderbird (from the mailbox).
If you change Content-type: text/html; charset=iso-8859-1 to Content-type: text/html; charset=UTF-8 (See Attachment 2 [details] [diff]) then it renders OK on Navigator.
Product: MailNews → Core
Blocks: 269826
No longer depends on: 269826
sorry for the spam. making bugzilla reflect reality as I'm not working on these bugs. filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
I guess it is the same issue like Bug 206421.
OS: Linux → All
Hardware: PC → All
Filter on "Nobody_NScomTLD_20080620"
QA Contact: esther → backend
Product: Core → MailNews Core
Attachment #393119 - Attachment mime type: message/rfc822;charset=iso-8859-1 → message/rfc822;charset=utf-8
Attachment #393119 - Attachment mime type: message/rfc822;charset=utf-8 → message/rfc822;charset=iso-8859-1
Attachment #393119 - Attachment mime type: message/rfc822;charset=iso-8859-1 → message/rfc822; charset=iso-8859-1
(1) charset of MIME-type of attachment relates to auto-detect only. If charset is specified, it is used even when auto-detect=on. (2) Both SeaMonkey 1 & 2 uses charset of MIME type or auto-detected charset. It's displayed in View/Character Encoding at first display. "Content-Type: ...; charset=xxxx" header in mail data is not used. (3) It's displays as expected if View/Character Encoding is changed to utf-8. Problem like next? Browser expects charset of MIME type or auto-detected charset. But Mailer returns data in UTF-8.
Attachment #393122 - Attachment mime type: message/rfc822; charset=iso-8859-1 → message/rfc822; charset=utf-8
I changed MIME type of Attachment 1 [details] [diff]X to "message/rfc822; charser=utf-8". Message body was displayed as expected by SeaMonkey.
Problem had been explained by Bug 206421 Comment #4 in 2004-11.
Copy of Bug 206421 Comment #4 From OstGote! on 2004-11-03. > The character encoding is respected (look at view - character encoding) > but in spite of the display is wrong. > I guess because there is an internal UTF-conversion. (snip) > The browser displays that ISO-8859-15 is used (that is correct, see source) > but the umlauts are still wrong. > Now change to UTF-8 and the display is ok.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: