title: How can I set the charset=UTF-8 in Spring for Android?
body: <p>I have the following code:</p>
  
  <pre><code>  HttpHeaders requestHeaders = new HttpHeaders();
    requestHeaders.setAccept(Collections.singletonList(new MediaType("text","plain;charset=UTF-8")));
  </code></pre>
  
  <p>However this throw me an IllegalArgumentException. The problem is that I want to set the charset as UTF-8 without change it from the config file. Is this possible?</p>