Saving files: Escaped characters are decoded and saved in the default locale but the charset override is untouched

RESOLVED DUPLICATE of bug 331991

Status

()

Firefox
General
RESOLVED DUPLICATE of bug 331991
11 years ago
11 years ago

People

(Reporter: Matthew Toseland, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

If the above URL (or any other Wikka page including external links) is saved to disk, and the system locale is different to the page charset, the infinity symbol will be decoded (it's an &# reference on the page), and saved *using the system locale*. The meta http-equiv for the charset is not however changed, so you end up with a file on disk which is actually in UTF-8 (the system locale in this case) but which has a meta-equiv saying it is ISO-8859-1. Result: infinity symbol turns into 3 meaningless accented characters.

Reproducible: Always

Steps to Reproduce:
1. Set system locale to UTF-8.
2. Visit http://wiki.freenetproject.org/FreenetZeroPointSevenSecurity (or any other ISO-8859-1 page on Wikka).
3. Save the page to disk.
4. Open the saved page in the browser.
Actual Results:  
Where there should be a superscripted infinity symbol, there are a few meaningless accented characters.

Expected Results:  
3 superscripted meaningless characters (UTF-8 representation of &#8734 - the problem is that the meta http-equiv still says iso-8859-1)

 Either the browser should save the page as it was originally sent to the browser (with the original reference &#8734), or it should transcode it to the system locale *and change the <meta http-equiv=content-type...> to reflect this*.

Updated

11 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 331991
You need to log in before you can comment on or make changes to this bug.