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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user