On Apr 18, 2007, at 4:23 PM, Shannon -jj Behrens wrote:
> I noticed that urllib.urlencode does THE RIGHT THING (i.e. it uses
> %xx) if you .encode('utf-8') the parameters first. I'm writing a ton
> of code that looks like h.url_for(q=stuff.encode('utf-8)), hence I'm
> wondering if h.url_for can do the encoding for me. Basically
> h.url_for should encode Unicode objects before calling
> urllib.urlencode.
I thought one of the patches I applied to the latest Routes will
automatically utf-8 encode query args? Have you tried just dropping
in a utf-8 unicode string for the param?
- Ben
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---