[Patches] [ python-Patches-679383 ] xmlrpclib: better string encoding in responce package

SourceForge.net noreply@sourceforge.net
Sat, 19 Apr 2003 00:54:29 -0700


Patches item #679383, was opened at 2003-02-03 10:16
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=679383&group_id=5470

Category: Library (Lib)
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Mike D. Rozhnov (mrozhnov)
Assigned to: Fredrik Lundh (effbot)
Summary: xmlrpclib: better string encoding in responce package

Initial Comment:
  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.


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-04-19 09:54

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=679383&group_id=5470