You need to add StringHttpMessageConverter to rest template’s message converter with charset UTF-8. Like this
RestTemplate restTemplate = new RestTemplate();
restTemplate.getMessageConverters()
.add(0, new StringHttpMessageConverter(StandardCharsets.UTF_8));
More Related Contents:
- Spring MVC Multipart Request with JSON
- POST request via RestTemplate in JSON
- No serializer found for class org.hibernate.proxy.pojo.javassist.Javassist?
- Spring MVC – HttpMediaTypeNotAcceptableException
- Custom HttpMessageConverter with @ResponseBody to do Json things
- Spring Security and JSON Authentication
- REST with Spring and Jackson full data binding
- Why does RestTemplate not bind response representation to PagedResources?
- Spring REST service: retrieving JSON from Request
- Could not write JSON: Infinite recursion (StackOverflowError); nested exception spring boot
- How do I customize default error message from spring @Valid validation?
- Modify default JSON error response from Spring Boot Rest Controller
- JsonMappingException: could not initialize proxy – no Session
- Spring @ResponseBody Jackson JsonSerializer with JodaTime
- include class name in all objects serialized by jackson
- Spring boot Jersey Jackson
- Create REST API without using any backend
- Does JSON syntax allow duplicate keys in an object?
- How do I decode HTML entities in Swift?
- How do I modify fields inside the new PostgreSQL JSON datatype?
- Swift 4 Decodable with keys not known until decoding time
- What are the differences between application/json and application/x-www-form-urlencoded?
- Gson optional and required fields
- How to decode JSON with type convert from string to float64
- jq: Object cannot be csv-formatted, only array
- Why would you use a string in JSON to represent a decimal number
- How can I deserialize an optional field with custom functions using Serde?
- spring resttemplate url encoding
- alamofire.error Code=-6006 “JSON could not be serialized
- RestTemplate with pem certificate