djangosnippets.org: Latest snippets tagged with 'urlencode'http://djangosnippets.org/tags/urlencode/2010-09-03T16:07:51.252583-05:00Custom urlencode that lets you specify safe characters.
2010-09-03T16:07:51.252583-05:00ungenio41http://djangosnippets.org/snippets/2186/<p>Equivalent to urllib.urlencode but works with unicode strings.
</p>
Freely redistributableurlquote() and urlencode() in one method
2008-10-30T03:02:12.433817-05:00guettlihttp://djangosnippets.org/snippets/1159/<p>I think this method is handy, since you don't need to remember if you
need urlquote or urlencode. It does both and adds a question mark
between the path and the get parameters, if later are present.</p>
<p>And it works around a bug in Django: MultiValueDicts (request.GET, request.POST) are handled …</p>
Freely redistributable