Save as html file always saves the header in utf-8
Categories
(MailNews Core :: Internationalization, defect)
Tracking
(Not tracked)
People
(Reporter: ji, Assigned: smontagu)
References
(Depends on 1 open bug)
Details
(Keywords: intl, regression, testcase-wanted, Whiteboard: [See comment 28] [needs owner])
Attachments
(2 files, 3 obsolete files)
3.99 KB,
patch
|
Details | Diff | Splinter Review | |
1.08 KB,
text/x-sh
|
Details |
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
Comment 5•24 years ago
|
||
Comment 6•24 years ago
|
||
Comment 7•24 years ago
|
||
Updated•24 years ago
|
Comment 10•24 years ago
|
||
Comment 11•24 years ago
|
||
Comment 12•24 years ago
|
||
Comment 13•24 years ago
|
||
Comment 14•23 years ago
|
||
Comment 15•23 years ago
|
||
Comment 16•23 years ago
|
||
Comment 17•23 years ago
|
||
Comment 18•23 years ago
|
||
Comment 19•23 years ago
|
||
Comment 20•23 years ago
|
||
Reporter | ||
Comment 21•23 years ago
|
||
Comment 22•23 years ago
|
||
Comment 23•23 years ago
|
||
Updated•23 years ago
|
Comment 24•22 years ago
|
||
Updated•21 years ago
|
Updated•21 years ago
|
Updated•17 years ago
|
Comment 25•16 years ago
|
||
![]() |
||
Comment 26•16 years ago
|
||
Updated•16 years ago
|
Updated•16 years ago
|
Updated•16 years ago
|
Comment 27•16 years ago
|
||
Comment 28•16 years ago
|
||
Updated•14 years ago
|
Comment 29•6 years ago
|
||
Dossy, can you formulate a testcase and reproduce?
Comment 30•6 years ago
|
||
I think the bug here is if "File > Save As > File > Format: HTML Files" ever generates anything other than UTF-8.
Thanks to Jungshik Shin's comment #24, which illustrates that RFC 2047 allows for mixing various character encodings in the mail header, and MIME parts can also be in different encodings, but a single HTML document must be encoded in one single encoding.
Therefore, the only way to guarantee the HTML output properly reproduces the email that is being saved is to always transcode the entire message and all its various parts in their different encodings to a common encoding such as UTF-8, otherwise the saved output will always be lossy or will not render properly as an HTML document, which is not the correct behavior.
I'm attaching a shell script that works for me on OSX 10.13 to send myself an email with multiple encodings, which you can then save the email as HTML and then open that resulting HTML file in a browser, and see how the ISO-2022-JP and KOI8-R sections (which contain the literal bytes from the corresponding encodings) fail to render nicely in the browser.
Comment 31•6 years ago
|
||
Updated•3 years ago
|
Description
•