Django

Code

Changeset 5845

Show
Ignore:
Timestamp:
08/11/07 04:47:38 (1 year ago)
Author:
mtredinnick
Message:

Documented the encoding attribute on the HttpRequest class.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/request_response.txt

    r5844 r5845  
    3838        elif request.method == 'POST': 
    3939            do_something_else() 
     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. 
    4048 
    4149``GET``