Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Documented the encoding attribute on the HttpRequest class.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit df1f76ac02389434530b9bb5c4ced20999e23735 1 parent 0afbca9
Malcolm Tredinnick authored August 11, 2007

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  docs/request_response.txt
8  docs/request_response.txt
@@ -38,6 +38,14 @@ All attributes except ``session`` should be considered read-only.
38 38
         elif request.method == 'POST':
39 39
             do_something_else()
40 40
 
  41
+``encoding``
  42
+    A string representing the current encoding used to decode form submission
  43
+    data (or ``None``, which means the ``DEFAULT_CHARSET`` setting is used).
  44
+    You can write to this attribute to change the encoding used when accessing
  45
+    the form data. Any subsequent attribute accesses (such as reading from
  46
+    ``GET`` or ``POST``) will use the new ``encoding`` value.  Useful if you
  47
+    know the form data is not in the ``DEFAULT_CHARSET`` encoding.
  48
+
41 49
 ``GET``
42 50
     A dictionary-like object containing all given HTTP GET parameters. See the
43 51
     ``QueryDict`` documentation below.

0 notes on commit df1f76a

Please sign in to comment.
Something went wrong with that request. Please try again.