Browse Source
Prior to this commit, the PrintingResultHandler in MockMvc -- typically invoked via .andDo(print()) -- printed an `application/json` response body using the default encoding (ISO-8859-1), which resulted in UTF-8 characters being garbled. Since an `application/json` response is implicitly encoded using UTF-8, the PrintingResultHandler now infers UTF-8 encoding for such response bodies. Closes gh-27926pull/28119/head
Sam Brannen
3 years ago
2 changed files with 30 additions and 3 deletions
Loading…
Reference in new issue