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

SourceForge.net noreply@sourceforge.net
Wed, 05 Feb 2003 13:30:38 -0800


Patches item #679383, was opened at 2003-02-03 04:16
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=679383&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
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.


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

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