I'm using the Java Spring RestTemplate for getting a JSON via a get request. The JSON I'm getting has instead of special characters like ü ö ä or ß some weird stuff. So I guess something is 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);
String.classwhich will useStringHttpMessageConverter. Can you try to useMappingJackson2HttpMessageConverter. E.g. ` ArrayList<HttpMessageConverter<?>> messageConverters = new ArrayList<HttpMessageConverter<?>>(); messageConverters.add(new MappingJackson2HttpMessageConverter()); restTemplate.setMessageConverters(messageConverters); `UTF-8charset because defaultCharSet isISO-8859-1