Form encoding should be changed only via HttpRequest, not on GET and POST

directly. 


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5614 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-07-05 01:25:05 +00:00
parent e7427cb22f
commit 7c35eee103
1 changed files with 1 additions and 3 deletions

View File

@ -345,9 +345,7 @@ client.
By default, the ``DEFAULT_CHARSET`` setting is used as the assumed encoding
for form data. If you need to change this for a particular form, you can set
the ``encoding`` attribute on the ``GET`` and ``POST`` data structures. For
convenience, changing the ``encoding`` property on an ``HttpRequest`` instance
does this for you. For example::
the ``encoding`` attribute on an ``HttpRequest`` instance. For example::
def some_view(request):
# We know that the data must be encoded as KOI8-R (for some reason).