aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/renderers.md
diff options
context:
space:
mode:
authorXavier Ordoquy2014-04-30 22:21:26 +0200
committerXavier Ordoquy2014-04-30 22:21:26 +0200
commit56b43903162c5f3d64fb32945b87168887d283cc (patch)
tree3c58eeb2d76cd689ae2e584f4149720876c938a2 /docs/api-guide/renderers.md
parentd08536ad9d026fb7126c430f6d9c18f8540aacd6 (diff)
parentd8fb81ceb15afe09a50584afcc466de812d30046 (diff)
downloaddjango-rest-framework-56b43903162c5f3d64fb32945b87168887d283cc.tar.bz2
Merge remote-tracking branch 'origin/master' into 2.4.0
Conflicts: .travis.yml rest_framework/serializers.py rest_framework/tests/test_authentication.py
Diffstat (limited to 'docs/api-guide/renderers.md')
-rw-r--r--docs/api-guide/renderers.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/api-guide/renderers.md b/docs/api-guide/renderers.md
index 7798827b..7a3429bf 100644
--- a/docs/api-guide/renderers.md
+++ b/docs/api-guide/renderers.md
@@ -138,6 +138,26 @@ Renders the request data into `YAML`.
Requires the `pyyaml` package to be installed.
+Note that non-ascii characters will be rendered using `\uXXXX` character escape. For example:
+
+ unicode black star: "\u2605"
+
+**.media_type**: `application/yaml`
+
+**.format**: `'.yaml'`
+
+**.charset**: `utf-8`
+
+## UnicodeYAMLRenderer
+
+Renders the request data into `YAML`.
+
+Requires the `pyyaml` package to be installed.
+
+Note that non-ascii characters will not be character escaped. For example:
+
+ unicode black star: ★
+
**.media_type**: `application/yaml`
**.format**: `'.yaml'`