I'm using the Java Spring Resttemplate for getting a json via a get request. The JSON I'm getting has instead of special character slike ü ö ä or ß some weird stuff. So I guess somethings wrong with the character encoding. I can't find any help on the internet. The code I'm using for now is:
String json = restTemplate.getForObject(
overPassStatementPostCode,
String.class,
params);
The overPassStamementPostCode is just a string with placeholders. It gets filled with the parameters in the params Map.
The problem is that the String json doesn't have the wanted encoding.
Thank you for the help. Best regards Daniel
{Date=[Mon, 05 Jan 2015 09:23:13 GMT], Server=[Apache/2.2.22 (Ubuntu)], Vary=[Accept-Encoding], Keep-Alive=[timeout=5, max=100], Connection=[Keep-Alive], Transfer-Encoding=[chunked], Content-Type=[application/json]}