[zope2-tracker] [Bug 142672] Re: No encoding set for XML-RPC responses

Nils Fredrik Gjerull 142672 at bugs.launchpad.net
Thu Jul 22 11:05:58 EDT 2010


The XML returned by Zope's xmlrpc should include a xml declaration
containing the current encoding used by zope. Where I work now we have a
lot of content in the iso-8859-1 encoding, so the xml default of UTF-8
is not appropriate. Retrieving content containing iso-8859-1 encoded
characters results in a UnicodeDecodeError. In order for us to use xml-
rpc we have to monkey patch the setBody method in
ZPublisher.xmlrpc.Response.

The comment by Andreas was about declaring the encoding in the HTTP
response, but that not the issue in this bug report. The issue is that
the xml returned do not declare an encoding (e.g <?xml version="1.0"
encoding="iso-8859-1"?>).

** Changed in: zope2
       Status: Invalid => New

-- 
No encoding set for XML-RPC responses
https://bugs.launchpad.net/bugs/142672
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list