• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ERRest response header and encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERRest response header and encoding


  • Subject: ERRest response header and encoding
  • From: Altera WO Team <email@hidden>
  • Date: Tue, 22 Dec 2015 19:05:14 +0100

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


  • Follow-Ups:
    • Re: ERRest response header and encoding
      • From: Johann Werner <email@hidden>
  • Prev by Date: Re: Using ERXThreadStorage
  • Next by Date: Re: ERRest response header and encoding
  • Previous by thread: Re: Using ERXThreadStorage
  • Next by thread: Re: ERRest response header and encoding
  • Index(es):
    • Date
    • Thread