Add defaultCharset field to StringHttpMessageConverter

Before this change the StringHttpMessageConverter used a fixed charset
"ISO-8859-1" if the requested content type did not specify one. This
change adds a defaultCharset field and a constructor to configure it in
StringHttpMessageConverter.

Issue: SPR-9487
This commit is contained in:
Rossen Stoyanchev
2012-07-05 15:53:49 -04:00
parent 4d297b475c
commit a4240d2864
2 changed files with 18 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ Changes in version 3.2 M2 (2012-08-xx)
* added support for the HTTP PATCH method
* enable smart suffix pattern match in @RequestMapping methods (SPR-7632)
* DispatcherPortlet does not forward event exceptions to the render phase by default (SPR-9287)
* add defaultCharset property to StringHttpMessageConverter
Changes in version 3.2 M1 (2012-05-28)