I'm using jersey client to make a request to a webservice.
Client client = ClientBuilder.newClient(new ClientConfig()); Invocation.Builder builder = client.target("http://someurl.com").request(); String result = builder.get(String.class); Then I got the response
<?xml version="1.0" encoding="ISO-8859-1" ?> <DATA>some data with é è à characters</DATA> But in my String result, response looks like that
<?xml version="1.0" encoding="ISO-8859-1" ?> <DATA>some data with � � � characters</DATA> How can I tell jersey to properly decode the webservice response ?