Look at the source instead of what the browser tells you: you'll see
that is encoded (with %20)

On Jan 1, 4:54 am, Remis B <bau...@gmail.com> wrote:
> Hi Everyone
>
> I need to url encode an string in the template. In django template
> language reference I saw documentation for filter "URLENCODE" which
> "Escapes a value for use in a URL". When I tried it,  it does nothing,
> I'm getting back the same string. I want to produce an url with
> properly encoded url string, such as "<a href="/catalog/feature/Full
> +HD1080p">Full HD1080p</a>" where space and other characters are
> encoded in url safe form.
>
> I've tried this syntax in my template file
>
> <a href="/catalog/feature/{{ feature.code|urlencode }}">
> {{ feature.code }}</a>
>
> Just wondering what I'm doing wrong.
>
> Thanks in advance.
>
> Remis B
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to