A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-December/031013.html below:

[Patches] Patch for xmlrpc encoding

[Python-Dev] Re: [Patches] Patch for xmlrpc encoding [Python-Dev] Re: [Patches] Patch for xmlrpc encodingRagnar Kjørstad python@ragnark.vestdata.no
Tue, 10 Dec 2002 09:25:14 +0100
On Tue, Dec 10, 2002 at 07:10:37AM +0100, Martin v. Löwis wrote:
> Ragnar Kjørstad <python@ragnark.vestdata.no> writes:
> 
> > The library makes an assumption that is (IMHO) just not valid. There =
is
> > simply no reason to assume strings use the packet encoding. 
> 
> There isn't a reason to assume that strings use any other encoding,
> either. 

Isn't that what sys.{get,set}defaultencoding is for?

> Reliance on the default encoding should be avoided as much as
> possible. Users wanting to transmit non-ASCII strings with xmlrpclib
> should pass Unicode objects in the first place.
> 
> Use byte strings to represent bytes, use Unicode strings to represent
> characters.

So perhaps it would be better to change the postgresql-modules to return
unicode-objects instead of strings?



-- 
Ragnar Kjørstad
Zet.no



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4