Comment 4 for bug 142672

Revision history for this message
Nils Fredrik Gjerull (nfg) wrote :

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"?>).