You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Laurent Garcia <la...@integro-networks.com> on 2003/02/18 17:00:02 UTC
Charset issue with HttpClient
Hi,
I just downloaded and integrated the HttpClient in my project, I send XML file over HTTP.
When would like to send XML file with french character but these characters are translated to bad character :
Envoyé : mardi 18 février 2003 14:34 to Envoyé : mardi 18 février 2003 14:34 .
I tried to add
post.setRequestHeader("Content-type", "text/xml; charset=UTF-8");
with no success.
Thanks for help.
Laurent Garcia
Re: Charset issue with HttpClient
Posted by Laurent Garcia <la...@integro-networks.com>.
Oleg,
I just download the last nightly build and everything is correct now.
Thank you for your help and your quickness
Laurent
----- Original Message -----
From: "Oleg Kalnichevski" <o....@dplanet.ch>
To: "Commons HttpClient Project" <co...@jakarta.apache.org>
Sent: Tuesday, February 18, 2003 5:09 PM
Subject: Re: Charset issue with HttpClient
> Laurent
>
> HttpClient 2.0a2 has been released with a few bugs related to content
> encoding in HTTP POST & PUT methods. They have been fixed in the current
> version. Give the nightly build of HttpClient a try. If the problem
> persists please let me know
>
> Cheers
>
> Oleg
>
> On Tue, 2003-02-18 at 17:00, Laurent Garcia wrote:
> > Hi,
> >
> > I just downloaded and integrated the HttpClient in my project, I send
XML file over HTTP.
> >
> > When would like to send XML file with french character but these
characters are translated to bad character :
> >
> > Envoyé : mardi 18 février 2003 14:34 to Envoyé : mardi 18
février 2003 14:34 .
> >
> > I tried to add
> >
> > post.setRequestHeader("Content-type", "text/xml; charset=UTF-8");
> >
> > with no success.
> >
> >
> >
> > Thanks for help.
> >
> >
> >
> > Laurent Garcia
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
commons-httpclient-dev-help@jakarta.apache.org
>
Re: Charset issue with HttpClient
Posted by Oleg Kalnichevski <o....@dplanet.ch>.
Laurent
HttpClient 2.0a2 has been released with a few bugs related to content
encoding in HTTP POST & PUT methods. They have been fixed in the current
version. Give the nightly build of HttpClient a try. If the problem
persists please let me know
Cheers
Oleg
On Tue, 2003-02-18 at 17:00, Laurent Garcia wrote:
> Hi,
>
> I just downloaded and integrated the HttpClient in my project, I send XML file over HTTP.
>
> When would like to send XML file with french character but these characters are translated to bad character :
>
> Envoyé : mardi 18 février 2003 14:34 to Envoyé : mardi 18 février 2003 14:34 .
>
> I tried to add
>
> post.setRequestHeader("Content-type", "text/xml; charset=UTF-8");
>
> with no success.
>
>
>
> Thanks for help.
>
>
>
> Laurent Garcia
>