OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xml-dev] Text/xml with omitted charset parameter



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:bjoern@hoehrmann.de } 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/