Issue #12931: xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of

failing with a UnicodeDecodeError.
This commit is contained in:
Victor Stinner 2011-09-23 01:15:32 +02:00
parent 2156594d8c
commit 51b719814e
3 changed files with 9 additions and 0 deletions

View file

@ -1539,6 +1539,9 @@ class ServerProxy:
allow_none=0, use_datetime=0):
# establish a "logical" server connection
if isinstance(uri, unicode):
uri = uri.encode('ISO-8859-1')
# get the url
import urllib
type, uri = urllib.splittype(uri)