Re: ERRest response header and encoding
Re: ERRest response header and encoding
- Subject: Re: ERRest response header and encoding
- From: Altera WO Team <email@hidden>
- Date: Wed, 23 Dec 2015 11:42:46 +0100
Hi Johann, thanks. It looks ok for me!
Matteo
> On 23 Dec 2015, at 11:26, Johann Werner <email@hidden> wrote:
>
> Hi Matteo,
>
> I created a pull request for that. You could give it a try and report back if it suits you:
>
> https://github.com/wocommunity/wonder/pull/718
>
> jw
>
>
>> Am 22.12.2015 um 19:05 schrieb Altera WO Team <email@hidden>:
>>
>> 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@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden