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

Unrecognized encodings

  • From: Richard Tobin <richard@c...>
  • To: xml-dev@l...
  • Date: Mon, 11 Jun 2001 23:24:44 +0100 (BST)

iana ebcdic encoding names
I don't see anything in the text quoted from the spec that says that
parsers should not accept "UTF8".

> In an encoding declaration, the values "UTF-8", "UTF-16", [...]
> should be used for the various encodings and transformations of
> Unicode / ISO/IEC 10646 [...]

This clearly applies to thedocuments, not parsers.

> It is recommended that character encodings registered (as charsets) 
> with the Internet Assigned Numbers Authority [IANA-CHARSETS], other 
> than those just listed, be referred to using their registered names; 

Again, this applies to documents.

> other encodings  should use names starting with an "x-" prefix. XML 
> processors should match character encoding names in a case-insensitive 
> way and should either interpret an IANA-registered name as the 
> encoding registered at IANA for that name or treat it as unknown [...]

This applies to parsers, but seems to be saying that parsers shouldn't
interpret IANA-registered name as anything but the corresponding
encoding (eg they shouldn't interpret "UTF-16" as EBCDIC).  If they
don't interpret it as the right thing, they should treat it as
unknown.  It doesn't say anything about names that *aren't*
IANA-registered.

That is, the "it" in the last quoted line refers to "an IANA-registered
name".

> My question is, must the XML parser developer honor these "shoulds" as if
> they were "musts" and produce a fatal error rather than accepting "UTF8"?

So I don't think there's even a "should" applying to how the parser
interprets "UTF8", let alone a "must".

-- Richard

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.