summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-08-11 09:47:38 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-08-11 09:47:38 +0000
commitdf1f76ac02389434530b9bb5c4ced20999e23735 (patch)
tree1773b18c4f93272c349798d30e3488bfb73a2d78 /docs
parent0afbca9c60206d5005243cb961ff813f2cd6dbf3 (diff)
Documented the encoding attribute on the HttpRequest class.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/request_response.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/request_response.txt b/docs/request_response.txt
index 826065981b..25d24d752b 100644
--- a/docs/request_response.txt
+++ b/docs/request_response.txt
@@ -38,6 +38,14 @@ All attributes except ``session`` should be considered read-only.
elif request.method == 'POST':
do_something_else()
+``encoding``
+ A string representing the current encoding used to decode form submission
+ data (or ``None``, which means the ``DEFAULT_CHARSET`` setting is used).
+ You can write to this attribute to change the encoding used when accessing
+ the form data. Any subsequent attribute accesses (such as reading from
+ ``GET`` or ``POST``) will use the new ``encoding`` value. Useful if you
+ know the form data is not in the ``DEFAULT_CHARSET`` encoding.
+
``GET``
A dictionary-like object containing all given HTTP GET parameters. See the
``QueryDict`` documentation below.