Serhiy Storchaka added the comment: xmlrpc uses XML. This format includes information about the encoding and doesn't need external specification.
The server in the example is not correct. It generates XML with default XML declaration that implies the UTF-8 encoding, but the body is encoded with non-UTF-8 encoding. If add the argument encoding='UTF-8' the example works. But this feature is not covered by tests. Proposed patch adds tests for non-default client and server encodings. No changes for the xmlrpc module itself is needed. ---------- assignee: -> serhiy.storchaka components: +Tests keywords: +patch nosy: +serhiy.storchaka stage: -> patch review type: behavior -> enhancement versions: +Python 3.5, Python 3.6 -Python 3.1, Python 3.2 Added file: http://bugs.python.org/file41633/test_xmlrpc_encoding-2.7.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9006> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com