W3C home > Mailing lists > Public > xmlp-comments@w3.org > May 2003

encoding missing in xml declaration

From: Aman Singh <haramansingh@hotmail.com>
Date: Fri, 9 May 2003 13:32:32 -0400 (EDT)
To: xmlp-comments@w3.org
Message-ID: <Sea1-F162T18olkDTM900007443@hotmail.com>

Dear Sir/Madame:

In the document SOAP Version 1.2 Part 0: Primer with status of Proposed 
Recommendation, I noted the following issue.

In Example 4, the xml declaration is <?xml version='1.0' ?> without any 
encoding attribute, therefore the value of encoding defaults to utf-8.  
Within the same soap message, an element is found with french characters.

<n:name xmlns:n="http://mycompany.example.com/employees">
           Ĺke Jógvan Řyvind

This is incorrect according to the XML 1.0 Recommendation unless the 
characters are escaped with the values.  According to my knowledge, two 
things could be done at this point by modifying Example 4's text:

1.) Add an encoding attribute to the xml declaration <?xml version='1.0' 
encoding='ISO-8859-1' ?>
2.) Change the element to
<n:name xmlns:n="http://mycompany.example.com/employees">
          &#197;ke J&#243;gvan &#216;yvind

making it a well formed xml document (due to assumption of encoding="utf-8")

Best Regards,

Aman Singh
XML Developer
Circular Array IT Services

Example at issue

Example 4
<?xml version='1.0' ?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" >
           env:mustUnderstand="true" >5</t:transaction>
   <m:reservation xmlns:m="http://travelcompany.example.org/reservation">
   <o:creditCard xmlns:o="http://mycompany.example.com/financial">
    <n:name xmlns:n="http://mycompany.example.com/employees">
           Ĺke Jógvan Řyvind

Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
Received on Saturday, 10 May 2003 07:35:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:16:59 UTC