Subject: [Simple] XCAP: XML encoding different than Content-Type 'charset' parameter

From: Iñaki Baz Castillo <[email-masked]>
Date: Thu, 3 Dec 2009 11:15:04 +0100

Hi, XCAP requires that the request content body is encoded in UTF-8. If I'm 
not wrong, the way to indicate the body encoding in HTTP is by adding a 
"charset" parameter to the Content-Type header.
However the XML itself has its own "encoding" attribute.

So what should happen if a PUT request has the folowing values related to 
encoding?:

  PUT /some-auid/sip:[email-masked]/my_file.xml HTTP/1.1
  Content-Type: application/lalala+xml;charset=US-ASCII

  <?xml version="1.0" encoding="UTF-8"?>
  <node1 xmlns="urn:lalalala:lolo">

Thanks.

-- 
Iñaki Baz Castillo <[email-masked]>