Open Bug 1311532 Opened 10 years ago Updated 4 years ago

UTF-8 meta tag missing when saving mails as HTML

Categories

(Thunderbird :: Message Reader UI, defect)

45 Branch
x86_64
Windows 7
defect

Tracking

(Not tracked)

People

(Reporter: cokefridgefan, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 Steps to reproduce: - Open a (UTF-8 encoded) mail/see it in preview window (for example with special character in it: "la région") - Press Ctrl+S or Click File > Save Selected Message > HTML with attachments - open generated html in Texteditor (e.g. Notepadd++) --> Mail is correctly encoded in UTF-8 "la région" - open generated html in Windows Explorer preview or IE/Chrome/... --> special characters are not encoded corretly but will display "la région" Actual results: - open generated html in Texteditor (e.g. Notepadd++) --> Mail is correctly encoded in UTF-8 "la région" - open generated html in Windows Explorer preview or IE/Chrome/... --> special characters are not encoded corretly but will display "la région" Expected results: - both in text editor and in browser, the text is expected to be displayed in UTF-8. (- Adding '<meta charset="utf-8">' after the HTML <head> tag fixed the problem)
Severity: normal → minor
OS: Unspecified → Windows 7
Hardware: Unspecified → x86_64
Confirmed. Exporting a bugmail which is UTF-8 encoded gives: <html> <head> <title>[Bug 1311437] Commit Access (Level 1) for Jérôme ploquin: try commit</title> <link rel="important stylesheet" href="chrome://messagebody/skin/messageBody.css"> </head> <body> ... The charset information is not exported and opening the HTLM file in Firefox shows mojibake. You don't actually need to add the <meta charset="utf-8">, you can just change the encoding used for viewing.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.