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/2008-July/081613.html below:

[Python-Dev] urllib.quote and unquote - Unicode issues

[Python-Dev] urllib.quote and unquote - Unicode issues [Python-Dev] urllib.quote and unquote - Unicode issuesStephen J. Turnbull stephen at xemacs.org
Thu Jul 31 12:13:35 CEST 2008
Bill Janssen writes:

 > > A quoting function that accepts bytes *must* have an encoding
 > > argument.
 > 
 > Huh?  What would it use it for?

Ah, you're right.  I was thinking in terms of an URI builder, where the
quoter would do any required conversion (eg, if the bytes represented
a string in Japanese) to another (possibly scheme-mandated) encoding
(typically UTF-8).  But that doesn't really make sense; the URI
builder should know what to do, and that's a better place to do such
conversions.

More information about the Python-Dev mailing list

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