I have a simple route that takes JSON string as POST request entity:
(path("createDistricts") & post & requestEntityPresent & parameters('projectId)) { (projectId) =>
entity(as[String]) { districtJson =>
ctx =>
Now, if I call it with the following curl statement, the JSON string is not decoded as UTF8 (but probably as ISO-8859):
But forcing the character set to be UTF-8, it works ok.
Shouldn't the default charset for "application/json" be UTF-8 also when decoding the entity? I recall there was a similar issue with JSON encoding that got fixed.
I'm using Spray 1.3.1, Scala 2.10.3 and Akka 2.3.0
- Otto