Hello list,
i'm accessing a WOnder application that exposes some stuff via ERRest.
The requesting application is also a WOnder application and to make the
requests it uses the apache httpclient that is shipped in ERJars.
I'm requesting data in json format which by specs should be UTF-8 and ERRest
encodes everything in UTF-8 but doesn't mention the encoding in the headers:
access-control-allow-origin: *
content-length: 3
Connection: close
Content-Type: application/json
httpclient not seeing any encoding specified in the response assumes the
default encoding for http content which is ISO-8859-1 and messes up all my
strings...
Apparently the ability to override the encoding has been introduced in
httpclient v 4.4 but in ERJars there is v 4.3.1. I always prefer to use the
"official" wonder but I have no easy way out... Either way I'll have to use my
wonder version.
Spring MVC sends responses like this:
access-control-allow-origin: *
content-length: 3
Connection: close
Content-Type: application/json; charset=utf-8
Do you think that bringing this to ERRest would harm anybody? Is it a good
idea? Is it stupid?
Thanks,
Matteo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]