I have a REST service made with Tomcat 8 and Spring v5.3.18. The service gets and stores a string in DB.
I have an issue with this input:
{"name": "Pawe\u0142"}
It is a valid UTF8 char.
The string saved is Pawe? so there is something wrong...
I started to check where it can be the missing encoding, but I found that it depends on the tomcat environment. Two servers with the same software, linked to a common database but with different operative system, first is Linux, second is Windows have different responses.
The Windows server is working and store the valid UTF8 char, the linux server is not working and stores the char as "?".
So I deduced it is not related to the software or missing encoding in sw configuration, but probably it is related to tomcat or java.
Do you have any idea about what can be wrong?
grep 'Pawe' file.txt | xxd