title: Spring ClientHttpRequestInterceptor body encoding
body: <p>I use the Spring 3.2.8 <code>ClientHttpRequestInterceptor</code> to modify the HTTP request send by <code>RestTemplate</code>. By overriding the method <code>intercept(HttpRequest, byte[], ClientHttpRequestExecution)</code> I get access to the request headers and body. The body is represented as a <code>byte</code> array.</p>
  
  <p>My problem refers to the encoding of the <code>byte</code> content. It can contain german umlauts. The strings are correct encoded just before they are passed to the interceptor. Inside the interceptor method I tried to decode the body with <code>new String(body)</code> and the umlauts are substituted with unknown characters like this <code>��������</code>.</p>
  
  <p>How can I keep the umlauts in the interceptor so that the request is properly coded? Thanks!</p>