thx for the comments. I now noticed another issue, also with encoding.
I have to send a json file to the server and have it processed. It will end up as account entities in the database. The problem here, again, is that the special charactes, gemran umlauts, etc. are all broken.
When I look at the json file on my system, I can see that the Groovy JsonBuilder correctly transformed a ü into \uXXXX for exampel. So I think the input file is really valid.
I then use the RestClient java app to send the file to the server:
POST /accounts
Content-Type application/json; charset=utf-8
body: the file in text form
on the server, I try to read it:
def slurper = new JsonSlurper().parse(new InputStreamReader(request.inputStream))
... the rest is pretty basic processing, and saving the entities.
Again, the characters for ü for example are broken. I am not quite undestanding this...
Anyone? Any help really appreciated.