[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Text/xml with omitted charset parameter

  • From: Rob Lugt <roblugt@e...>
  • To: John Cowan <cowan@m...>,Elliotte Rusty Harold <elharo@m...>
  • Date: Sun, 28 Oct 2001 17:35:01 +0000

xml missing charset
>
> > So is it the case, then, that the default for everything in the text/*
> > tree must be ASCII or 8859-1? It's not possible for the subtype text/xml
> > to provide a different default than the type text?
>
> The whole point of registering a format under text/* is that a dumb
> interpreter can treat it as plain text, expecting CR/LF line terminators
not
> too infrequently, if it doesn't know what to do with it.  Furthermore,
> unless the charset parameter says otherwise it can treat it as ASCII.
> the rock-bottom Internet interoperability default.
>
> Dumb interpreters rarely, if ever, should treat XML as plain text
(displaying
> it as-is, for example).

My understanding so far...

-  text/xml is the most ubiquitous HTTP content type for xml.
-  if absent, the official default charset for text/xml is us-ascii
-  therefore the charset parameter MUST be specified if the content is UTF-8
-  many HTTP servers don't conform to this
-  most xml processors (ours included) don't conform to this

My question is, what is the rationale for this 'standard'?  Does it actually
make any sense for an xml processor to conform?

My thinking goes like this.  If the xml entity contains only us-ascii then
it makes no difference if the xml processor treats it like UTF-8.   On the
other hand, if the xml entity contains UTF-8 characters, then a "non
conformant" processor will read it correctly, whereas a "conformant" one
must reject it.  It appears in this case that non-conformance has only
positive side-effects.  Perhaps I'm missing something?

Regards
~Rob

---
Rob Lugt
ElCel Technology
http://www.elcel.com/





PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.