[Python-Dev] urllib.quote and unquote - Unicode issues (original) (raw)

Bill Janssen janssen at parc.com
Thu Jul 31 02:25:25 CEST 2008


I think this is as close as consensus as we can get on this issue. Can whoever wrote the patch adjust the patch to this outcome? (I think the only change is to remove the encoding arguments and make separate functions for bytes.)

This is 2.7/3.1 only, right? I'm looking at the bales of code I've got that says something like,

v = urlib.quote_plus(x.encode("UTF-8", "strict"))

then later on

x = unicode(urllib.unquote_plus(v), "UTF-8", "strict")

Bill



More information about the Python-Dev mailing list