[Webkit-unassigned] [Bug 215764] incorrect charset default for text/xml

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 25 12:37:28 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=215764

--- Comment #5 from Julian Reschke <julian.reschke at gmx.de> ---
Unless I'm missing something, https://www.w3.org/TR/REC-xml/#charencoding does not refer to RFC 3023 at all.

That said, what would be relevant is the *current* definition of the text/xml media type, which is RFC 7303.

Also, it seems you missed the normative text in <https://www.w3.org/TR/REC-xml/#charencoding>:

"Though an XML processor is required to read only entities in the UTF-8 and UTF-16 encodings, it is recognized that other encodings are used around the world, and it may be desired for XML processors to read entities that use them. In the absence of external character encoding information (such as MIME headers), parsed entities which are stored in an encoding other than UTF-8 or UTF-16 MUST begin with a text declaration (see 4.3.1 The Text Declaration) containing an encoding declaration: (...)"

Note the last sentence; if there is no external character encoding information, the default is UTF-8 or UTF-16, nothing else.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200825/4dfd7dd5/attachment.htm>


More information about the webkit-unassigned mailing list