0

I have a problem with encoding request param in Spring. I have a GetMapping:

public DTO getAll(@RequestParam final Long pageSize,
                  @RequestParam(required = false) final String searchString,
                  @RequestParam final Long pageNumber) {
    log.debug("Search text is: {}", searchString);
}

When I write numbers or english symbols in searchString, it works correct, but when I write, for example, russian words, i get this

Search text is: казан�кй

Can anybody help?

0 Answers0