Nevermind, I'm an idiot, the link I thought I was escaping in python
was actually being escaped in javascript...
m
On Feb 2, 7:16 pm, Matt <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> In config/routing.py I have:
>
> map.connect('/companies/:company_name/domains/:domain_name',
> controller='cdt', action='cdt', company_name=None, domain_name=None)
>
> I'm generating the company_name portion of the link in my app using
> urllib.quote_plus:
>
> urllib.quote_plus(s.encode('utf8'))
>
> And I'll do the reverse in my controller, but the parameter to my
> controller action seems to be getting half decoded somewhere else...
>
> For this company:
>
> Foo ††
>
> I generate this link:
>
> /companies/Foo+%E2%80%A0%E2%80%A0
>
> But the parameter I get back in the controller looks like this:
>
> Foo %u2020%u2020
>
> Where am I going wrong here? Or is this a bug?
>
> thx
>
> Matt
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---