[Python-3000] urllib.quote/unquote behavior?
Georg Brandl
g.brandl at gmx.net
Fri May 30 14:19:23 CEST 2008
Hi,
Python 3.0's urllib.quote() and unquote() handle non-ASCII data strangely.
quote() encodes characters with codepoint < 256 using latin-1, but others
using utf-8. unquote() decodes everything using latin-1.
Is the correct behavior to always use utf-8?
Georg
--
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
More information about the Python-3000
mailing list