[Baypiggies] urllib.urlencode and encoding
Keith Dart ♂
keith at dartworks.biz
Thu Apr 19 01:35:27 CEST 2007
Shannon -jj Behrens wrote the following on 2007-04-18 at 16:25 PDT:
===
> I noticed that urllib.urlencode does the right thing (i.e. it uses
> %xx) if you .encode('utf-8') the parameters first. I'm wondering if
> it makes sense for urllib.urlencode to automatically encode Unicode
> objects in this case. I haven't had much luck getting changes into
> Python, so I was going to solicit comments here first.
===
Yes, I think so. That's wny I use the module urlparseplus.
http://pynms.googlecode.com/svn/trunk/lib/urlparseplus.py
--
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Keith Dart <keith at dartworks.biz>
public key: ID: 19017044
<http://www.dartworks.biz/>
=====================================================================
More information about the Baypiggies
mailing list