Jersey client response string encoding
<p>I'm using jersey client to make a request to a webservice.</p>

<pre><code>Client client = ClientBuilder.newClient(new ClientConfig());
Invocation.Builder builder = client.target("http://someurl.com").request();
String result = builder.get(String.class);
</code></pre>

<p>Then I got the response</p>

<pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
&lt;DATA&gt;some data with é è à characters&lt;/DATA&gt;
</code></pre>

<p>But in my String result, response looks like that</p>

<pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
&lt;DATA&gt;some data with � � � characters&lt;/DATA&gt;
</code></pre>

<p>How can I tell jersey to properly decode the webservice response ?</p>