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

Re: UTF's considered best practice [was: Re: nextml]

  • From: Uche Ogbuji <uche@ogbuji.net>
  • To: Jim DeLaHunt <from.xml-dev@jdlh.com>
  • Date: Thu, 9 Dec 2010 08:28:22 -0700

Re: UTF's considered best practice [was: Re:  nextml]
On Wed, Dec 8, 2010 at 11:31 PM, Jim DeLaHunt <from.xml-dev@jdlh.com> wrote:
Sometimes UTF-16 is a more compact representation, sometimes UTF-8 is. It depends on the frequency distribution of characters in the document. But they have equivalent descriptive power; either can represent any sequence of Unicode characters.  If nextml adopts UTF-16, be aware that it can be serialised to bytes in either little-endian or big-endian order (UTF-16LE or UTF-16BE), so nextml should account for those possibilities. It should also allow for the special Byte-Order Mark character (BOM), which is used to distinguish the two.

Thanks for all the great links and references.  That backs up my suspicion that supporting a diversity of encodings is a matter of less urgency than it was when XML 1.0 was born.

As for the BOM, yes, that should be key in any XML successor, as it is in XML 1.0 itself.  In XML 1.0, you can tell the encoding even if it's not in the XML declaration because if not, it must either be UTF-8 (if there is no BOM), or UTF-8, UTF-16LE, UTF-16BE, etc. depending on BOM.

If it's OK to say UTF only (and we banish the standalone declaration) , then there is no need for an explicit encoding declaration beside optional BOM.


--
Uche Ogbuji                       http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net
Poetry ed @TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji

  • References:
    • nextml
      • From: Amelia A Lewis <amyzing@talsever.com>
    • Re: nextml
      • From: Uche Ogbuji <uche@ogbuji.net>

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.