Text/xml with omitted charset parameter

Bjoern Hoehrmann <[email protected]>
Newsgroups gmane.ietf.xml-mime
Organization none
Message-ID <[email protected]>
Hi,

Quoting RFC 3023, section 8.5:

| 8.5 Text/xml with Omitted Charset
| 
|    Content-type: text/xml
| 
|    {BOM}<?xml version="1.0" encoding="utf-16"?>
| 
|    or
| 
|    {BOM}<?xml version="1.0"?>
| 
|    This example shows text/xml with the charset parameter omitted.  In
|    this case, MIME and XML processors MUST assume the charset is "us-
|    ascii",

... and issue a fatal error, no BOM in US-ASCII. Mentioning UTF-16 in
this example is absurd, XML documents labeled as text/xml without
charset parameter can never ever be UTF-16 encoded. So, who tells me I
am wrong and text/xml documents without charset parameter may still be
UTF-8 encoded (and use non-ASCII characters)? Apache uses text/xml as
default type for .xml documents, are they asking for interoperability
problems or what?
-- 
Björn Höhrmann { mailto:[email protected] } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.