title: Responsebody encoding in Spring MVC 4.3.3
body: <p>To set @responsebody encoding in spring-webmvc, I used to add the following lines in configuration file:</p>
  
  <pre><code>&lt;mvc:annotation-driven&gt;
      &lt;mvc:message-converters&gt;
          &lt;bean class="org.springframework.http.converter.StringHttpMessageConverter"&gt;
              &lt;property name="supportedMediaTypes"&gt;
                  &lt;list&gt;
                      &lt;value&gt;text/plain;charset=UTF-8&lt;/value&gt;
                      &lt;value&gt;text/html;charset=UTF-8&lt;/value&gt;
                  &lt;/list&gt;
              &lt;/property&gt;
          &lt;/bean&gt;
          &lt;bean class="org.springframework.http.converter.BufferedImageHttpMessageConverter"/&gt;
      &lt;/mvc:message-converters&gt;
  </code></pre>
  
  <p>
  This override the default charset responsebody handler use. And it worked with spring-mvc version 4.2.7 and below.</p>
  
  <p>However, in the latest version of spring-webmvc(4.3.3), this method does not work. In the new version, StringHttpMessageConverter reads content-type from response header, and if content-type string includes charset information, it use this charset and ignores it's default charset. </p>
  
  <p>I know I can write like this to solve this problem:</p>
  
  <pre><code>@RequestMapping(value = "/getDealers", method = RequestMethod.GET, 
  produces = "application/json; charset=utf-8")
  @ResponseBody
  public String sendMobileData() {
  
  }
  </code></pre>
  
  <p>But I have to write it on every method or every controller.
  Is there any way to set responsebody encoding globally like I did before?</p>