hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject RE: Cactus and HttpClient encoding issue
Date Wed, 19 Feb 2003 13:53:11 GMT
Thanks Oleg. It does help a lot.

-Vincent

> -----Original Message-----
> From: Oleg Kalnichevski [mailto:o.kalnichevski@dplanet.ch]
> Sent: 19 February 2003 14:22
> To: Commons HttpClient Project
> Subject: Re: Cactus and HttpClient encoding issue
> 
> Hi Vincent
> 
> HTTP spec defines two types of encoding: HTTP element encoding &
content
> encoding. HTTP elements such as request line, status line,
> request/response headers must be hard-coded in US-ASCII.
> Request/response content encoding is not hard-coded and can be
specified
> by the HTTP agent by providing a content type header:
> 
> "Content-Type: text/plain; charset=UTF-8"
> 
> Per default ISO-8859-1 is used if either Content-Type header or
charset
> clause is missing.
> 
> HttpConstants class defines several constants that may prove of help
for
> you
> 
> HttpConstants#HTTP_ELEMENT_CHARSET - HTTP element encoding
> HttpConstants#DEFAULT_CONTENT_CHARSET - Default content encoding
> 
> I hope this helps
> 
> Cheers
> 
> Oleg
> 
> 
> On Wed, 2003-02-19 at 13:37, Vincent Massol wrote:
> > Hi,
> >
> > In Cactus land (which uses HttpClient), I have received a bug report
for
> > supporting different encodings
> > (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17077). Up until
now,
> > Cactus was using the default platform encoding for reading data from
> > streams. However, the bug reporter (Neal) who is developing on z/OS
told
> > me that all the HttpClient code is using a "hardcoded" encoding of
ASCII
> > (I guess 8859-1).
> >
> > I now need to modify Cactus so that Cactus plays ball with
HttpClient. I
> > have 2 questions:
> >
> > 1/ Is it possible in HttpClient for the user to choose which
encoding to
> > use?
> > 2/ Is there a HttpClient API I can query from Cactus to know which
> > encoding is being used by HttpClient?
> >
> > Thanks
> > -Vincent
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-httpclient-dev-
> unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-httpclient-dev-
> help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-
> unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-
> help@jakarta.apache.org



Mime
View raw message