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/031012.html below:

[Patches] Patch for xmlrpc encoding

[Python-Dev] Re: [Patches] Patch for xmlrpc encoding [Python-Dev] Re: [Patches] Patch for xmlrpc encodingMartin v. Löwis martin@v.loewis.de
10 Dec 2002 07:10:37 +0100
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. 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.

Regards,
Martin




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