Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.5.x] Fixed #6234 -- Removed obsolete note about json and ensure_ascii

Thanks aaron at cellmap.ca for the report.
Backport of 4e8d952 from master.
  • Loading branch information...
commit b61778dcf642341c831041ab103ee0545eb8a1e6 1 parent d7688a0
Claude Paroz authored November 03, 2012

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

  1. 9  docs/topics/serialization.txt
9  docs/topics/serialization.txt
@@ -166,15 +166,6 @@ Notes for specific serialization formats
166 166
 json
167 167
 ^^^^
168 168
 
169  
-If you're using UTF-8 (or any other non-ASCII encoding) data with the JSON
170  
-serializer, you must pass ``ensure_ascii=False`` as a parameter to the
171  
-``serialize()`` call. Otherwise, the output won't be encoded correctly.
172  
-
173  
-For example::
174  
-
175  
-    json_serializer = serializers.get_serializer("json")()
176  
-    json_serializer.serialize(queryset, ensure_ascii=False, stream=response)
177  
-
178 169
 Be aware that not all Django output can be passed unmodified to :mod:`json`.
179 170
 In particular, :ref:`lazy translation objects <lazy-translations>` need a
180 171
 `special encoder`_ written for them. Something like this will work::

0 notes on commit b61778d

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