Getting the below exception while parsing the JSON request body,
The request body has a special character "®" (non UTF-8) and while parsing, this fails. How to handle this non UTF-8 characters in the request body?
{
"fields": [
{
"fieldLabel": "data®"
}
]
}
I want to save the object with the special character. I tried researching and couldn't find one proper solution. Thanks in advance.
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Invalid UTF-8 start byte 0xae; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Invalid UTF-8 start byte 0xae
at [Source: (PushbackInputStream); line: 1, column: 907] (through reference chain: java.util.ArrayList[0]->com.model.TableDefinition["field"]->java.util.ArrayList[1]->com.model.FieldDefinition["fieldLabel"])