This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: xmlrpclib: better string encoding in responce package
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: effbot Nosy List: effbot, loewis, mrozhnov
Priority: normal Keywords: patch

Created on 2003-02-03 09:16 by mrozhnov, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
xmlrpclib.diff mrozhnov, 2003-02-03 09:18 xmlpclib patch
Messages (2)
msg42639 - (view) Author: Mike D. Rozhnov (mrozhnov) Date: 2003-02-03 09:16
  ServerProxy class has optional 'encoding' argument.
For now, this argument is used for packet encoding.
8-bit strings in the data structure are assumed to use
this encoding, unicode strings converted to this encoding.
But Unmarshaller class, that process response, use
'_stringify' function for converting 7-bit strings
to Python strings, 8-bit strings remains as unicode
Python strings.

  It seems more logicaly to convert strings in responce
package to Python strings with encoding which used in
ServerProxy constructor.

  This patch adds optional 'encoding' argument to
Unmarshaller class, Transport class and loads function.
msg42640 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-04-19 07:54
Logged In: YES 
user_id=21627

The patch is out of date: Support for an optional encoding
argument was implemented in xmlrpclib.py 1.19.
History
Date User Action Args
2022-04-10 16:06:27adminsetgithub: 37896
2003-02-03 09:16:17mrozhnovcreate