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:
parent
e7427cb22f
commit
7c35eee103
|
@ -345,9 +345,7 @@ client.
|
||||||
|
|
||||||
By default, the ``DEFAULT_CHARSET`` setting is used as the assumed encoding
|
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
|
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
|
the ``encoding`` attribute on an ``HttpRequest`` instance. For example::
|
||||||
convenience, changing the ``encoding`` property on an ``HttpRequest`` instance
|
|
||||||
does this for you. For example::
|
|
||||||
|
|
||||||
def some_view(request):
|
def some_view(request):
|
||||||
# We know that the data must be encoded as KOI8-R (for some reason).
|
# We know that the data must be encoded as KOI8-R (for some reason).
|
||||||
|
|
Loading…
Reference in New Issue