summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2012-12-16 14:34:41 -0500
committerTim Graham <timograham@gmail.com>2012-12-16 14:39:37 -0500
commit507c0814847fe3637d23625cc6f26bf2cfa5f66f (patch)
treedf918adba162a15977ef15000025649c04b1bc12 /docs
parentbf14aed3cc3cc1a7422873a4a8bc0e9ad1615c6f (diff)
downloaddjango-507c0814847fe3637d23625cc6f26bf2cfa5f66f.tar.gz
Fixed #18718 - Documented django.utils.encoding.filepath_to_uri
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/utils.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index bd3898172a..2f12c3a96c 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -305,6 +305,18 @@ The functions defined in this module share the following properties:
Returns an ASCII string containing the encoded result.
+.. function:: filepath_to_uri(path)
+
+ Convert a file system path to a URI portion that is suitable for inclusion
+ in a URL. The path is assumed to be either UTF-8 or unicode.
+
+ This method will encode certain characters that would normally be
+ recognized as special characters for URIs. Note that this method does not
+ encode the ' character, as it is a valid character within URIs. See
+ ``encodeURIComponent()`` JavaScript function for more details.
+
+ Returns an ASCII string containing the encoded result.
+
``django.utils.feedgenerator``
==============================