mirror of https://github.com/django/django.git
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
|
||||
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).
|
||||
|
|
Loading…
Reference in New Issue