diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-11-03 23:53:51 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-11-03 23:53:51 +0100 |
| commit | 4e8d9524c62d071718a85d1d55a18310be91b4f7 (patch) | |
| tree | e292ba04f144a92d2386148aefeb03e4fae11548 | |
| parent | fc10418fba4fb906e4265650b62c510d526d63f7 (diff) | |
Fixed #6234 -- Removed obsolete note about json and ensure_ascii
Thanks aaron at cellmap.ca for the report.
| -rw-r--r-- | docs/topics/serialization.txt | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt index 9b44166e42..28f600e223 100644 --- a/docs/topics/serialization.txt +++ b/docs/topics/serialization.txt @@ -166,15 +166,6 @@ Notes for specific serialization formats json ^^^^ -If you're using UTF-8 (or any other non-ASCII encoding) data with the JSON -serializer, you must pass ``ensure_ascii=False`` as a parameter to the -``serialize()`` call. Otherwise, the output won't be encoded correctly. - -For example:: - - json_serializer = serializers.get_serializer("json")() - json_serializer.serialize(queryset, ensure_ascii=False, stream=response) - Be aware that not all Django output can be passed unmodified to :mod:`json`. In particular, :ref:`lazy translation objects <lazy-translations>` need a `special encoder`_ written for them. Something like this will work:: |
