On Tue, Feb 28, 2012 at 11:13 AM, vijay shanker <vi.w...@gmail.com> wrote:
> i need to pass " & " as query e.g q=larsen & turbo
> urlencode does not works as finally its as good as without it for
> above eg.
> please suggest.
>

>>> from django.http import QueryDict
>>> qstring = QueryDict('', mutable=True)
>>> qstring['query'] = 'hello&goodbye'
>>> qstring.urlencode()
'query=hello%26goodbye'

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to