Add a note in the documentation about use of the JVM's default charset

Closes gh-201
This commit is contained in:
Andy Wilkinson
2016-02-15 12:43:32 +00:00
parent cfc413f7ed
commit 4d44401efa

View File

@@ -46,6 +46,11 @@ use `RestDocumentationMockMvcConfigurer` to configure it:
include::{examples-dir}/com/example/CustomEncoding.java[tags=custom-encoding]
----
TIP: When Spring REST Docs converts a request or response's content to a String, the
`charset` specified in the `Content-Type` header will be used if it is available. In its
absence, the JVM's default `Charset` will be used. The JVM's default `Charset` can be
configured using the `file.encoding` system property.
[[configuration-default-snippets]]