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

Re: [Summary] Why is Encoding Metadata (e.g. encoding="UTF-8")

  • From: "Pete Cordell" <petexmldev@t...>
  • To: "Costello, Roger L." <costello@m...>
  • Date: Thu, 20 Sep 2007 13:43:10 +0100

Re:  [Summary] Why is Encoding Metadata (e.g. encoding="UTF-8")
Hi Roger,

One small observation on your web page summary...

I don't think the UTF-8 text in the HTML charset declaration should have 
quotes around it (or rather the left quote around it shouldn't be there). 
e.g.:

 <meta http-equiv="Content-Type" content="text/html; Charset="UTF-8"  />

should be:

 <meta http-equiv="Content-Type" content="text/html; Charset=UTF-8"  />

Otherwise the value of the content attribute becomes malformed even by 
HTML's standards!

Also, this text is not quite right:
    "These are all ASCII characters. Thus, an XML parser opens the document, 
interprets
    the bit strings as ASCII characters up to the first ">" character. From 
then on, it interprets
    the rest of the document using the encoding it finds in the XML 
declaration."

Your section on the algorithm is closer to the mark.  Basically, it uses the 
algorithm to guess the encoding.  For example, given the example you show it 
would assume UTF-8.  It would then read on, and when it interpreted the 
encoding attribute could switch to ASCII, ISO-8859-*, shift-JIS and so on as 
appropriate.

HTH,

Pete.
--
=============================================
Pete Cordell
Codalogic
for XML Schema to C++ data binding visit
 http://www.codalogic.com/lmx/
=============================================

----- Original Message ----- 
From: "Costello, Roger L." <costello@m...>
To: <xml-dev@l...>
Sent: Thursday, September 20, 2007 1:05 PM
Subject:  [Summary] Why is Encoding Metadata (e.g. 
encoding="UTF-8") put Inside the XML Document?


Hi Folks,

As always, outstanding comments!  Thanks!

I have incorporated your comments.  Please let me know if I am missing
anything, or have incorrectly interpreted your comments:

http://www.xfront.com/specifying-encoding/

I am particularly interested in hearing if you agree with the
recommendations that I list.

/Roger

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php





[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.