diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-05-25 07:25:34 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-05-25 07:25:34 +0000 |
| commit | 7b51097847f5ec549f24be603d89d748b40c0fc9 (patch) | |
| tree | d9be79b8efadc0220d49fd2dcdc49026edd1c987 /docs | |
| parent | 78b75b9065bcb3e4a016e5a8a3cdd671b7742b63 (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/unicode.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/unicode.txt b/docs/unicode.txt index 70be4a99ee..92b73ec240 100644 --- a/docs/unicode.txt +++ b/docs/unicode.txt @@ -149,8 +149,8 @@ a little tricky, so Django provides some assistance. * The function ``django.utils.encoding.iri_to_uri()`` implements the conversion from IRI to URI as required by `the specification`_. - * The functions ``django.utils.html.urlquote()`` and - ``django.utils.html.urlquote_plus()`` are versions of Python's standard + * The functions ``django.utils.http.urlquote()`` and + ``django.utils.http.urlquote_plus()`` are versions of Python's standard ``urllib.quote()`` and ``urllib.quote_plus()`` that work with non-ASCII characters (the data is converted to UTF-8 prior to encoding). @@ -235,7 +235,7 @@ encoding yourself. Normally, this would involve a combination of the example:: from django.utils.encoding import iri_to_uri - from django.utils.html import urlquote + from django.utils.http import urlquote def get_absolute_url(self): url = u'/person/%s/?x=0&y=0' % urlquote(self.location) |
