Closed
Bug 243865
Opened 20 years ago
Closed 20 years ago
default encoding is not utf-8 for application/xhtml+xml documents
Categories
(Core :: Internationalization, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 240321
People
(Reporter: vr, Assigned: smontagu)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 If document is served with application/xhtml+xml encoding, and autodetection-->universal is off and no encoding is supplied in HTTP headers sent by server or in the <meta> tag, and <?xml ..?> declaration is omitted, default encoding is not treated as utf-8, as requered by REC-XML 3.1.1. Reproducible: Always Steps to Reproduce: 1. Make sure that encoding is not utf-8 and autodetection of encoding is switched off. 2. Serve some utf-8 document with non-ASCII symbols (e.g. Cyrillic), which does not have an xml declaration and no "Content-type" HTTP header or <meta> tag, with an application/xhtml+xml MIME type. Actual Results: Enjoy the scary rendering of utf-8 characters as if they would be characters in the chosen encoding. Expected Results: Browser must use UTF-8 unconditionally for XML documents when no encoding indication is given. This was checked with russian utf-8 documents, I have no knowledge whether glyphs from the other languages are similarly misinterpreted. It does switches to utf-8 when the document is served as text/html though, disregarding autodetection settings. application/xhtml+xml MIME type should work in a similar way.
Comment 1•20 years ago
|
||
Fixed in current builds. *** This bug has been marked as a duplicate of 240321 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•