summaryrefslogtreecommitdiff
path: root/Lib/xmlrpc/client.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2009-04-01 20:20:43 +0000
committerSenthil Kumaran <orsenthil@gmail.com>2009-04-01 20:20:43 +0000
commitb3af08f84c36106f8873d0fa7e8775aa0ef6ab75 (patch)
tree8a22b05e855f594fea848616e5e7556db06e0bde /Lib/xmlrpc/client.py
parentdf8709d7b141c334ebacbf0e4380de7fd90d1276 (diff)
downloadcpython-git-b3af08f84c36106f8873d0fa7e8775aa0ef6ab75.tar.gz
Fix for issue5040. Adding support for unicode message passing and tests for unicode message and test for Content-Length.
Diffstat (limited to 'Lib/xmlrpc/client.py')
-rw-r--r--Lib/xmlrpc/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/xmlrpc/client.py b/Lib/xmlrpc/client.py
index 86988deefa..cc717e0753 100644
--- a/Lib/xmlrpc/client.py
+++ b/Lib/xmlrpc/client.py
@@ -1316,7 +1316,7 @@ class ServerProxy:
transport = Transport(use_datetime=use_datetime)
self.__transport = transport
- self.__encoding = encoding
+ self.__encoding = encoding or 'utf-8'
self.__verbose = verbose
self.__allow_none = allow_none
@@ -1324,7 +1324,7 @@ class ServerProxy:
# call a method on the remote server
request = dumps(params, methodname, encoding=self.__encoding,
- allow_none=self.__allow_none)
+ allow_none=self.__allow_none).encode(self.__encoding)
response = self.__transport.request(
self.__host,