i have a angular client that send a emoji to Spring Boot Rest Client.
when I process the request I have dirty characters in the string field.
How i can get a emoji character?
This is the controller:
@UserAnnotation(value = UserType.A)
@PutMapping("/modify")
public ResponseEntity<ResponseController> modify(@Valid @RequestBody NovitaPojo novita) throws JsonProcessingException {
service.edit(novita);
return new ResponseEntity<>(ResponseController.buildOK(), HttpStatus.OK);
}
You can handle emoji with either by, update your application.yaml file as:
or by defining UTF-8 in controller as