1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

unicode: Added a unicode-aware version of urlencode. Since we now have a

collection of URL encoding functions, moved them into django.utils.http
(out of django.utils.html).


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick
2007-05-25 07:25:34 +00:00
parent 78b75b9065
commit 7b51097847
7 changed files with 49 additions and 28 deletions

View File

@@ -17,7 +17,7 @@ r"""
friends'
### urlquote #############################################################
>>> from django.utils.html import urlquote, urlquote_plus
>>> from django.utils.http import urlquote, urlquote_plus
>>> urlquote(u'Paris & Orl\xe9ans')
u'Paris%20%26%20Orl%C3%A9ans'
>>> urlquote_plus(u'Paris & Orl\xe9ans')