encoding missing in xml declaration

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
</n:name>

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
</n:name>

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:Header>
   <t:transaction
           xmlns:t="http://thirdparty.example.org/transaction"
           env:encodingStyle="http://example.com/encoding"
           env:mustUnderstand="true" >5</t:transaction>
</env:Header>
<env:Body>
  <m:chargeReservation
      env:encodingStyle="http://www.w3.org/2003/05/soap-encoding"
         xmlns:m="http://travelcompany.example.org/">
   <m:reservation xmlns:m="http://travelcompany.example.org/reservation">
    <m:code>FT35ZBQ</m:code>
   </m:reservation>
   <o:creditCard xmlns:o="http://mycompany.example.com/financial">
    <n:name xmlns:n="http://mycompany.example.com/employees">
           Åke Jógvan Øyvind
    </n:name>
    <o:number>123456789099999</o:number>
    <o:expiration>2005-02</o:expiration>
   </o:creditCard>
  </m:chargeReservation>
</env:Body>
</env:Envelope>

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

Received on Saturday, 10 May 2003 07:35:35 UTC