hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: French accents problem while sending postMethod
Date Tue, 22 Sep 2009 14:07:05 GMT
On Tue, Sep 22, 2009 at 06:46:22AM -0700, Ken Krugler wrote:
> OK, either Oleg gets up even earlier than me, or he's not on west coast 
> time :)
>

No, I am not :) I guess henceforth I will be answering HttpClient related
questions only if they have been unanswered for a couple of days to encourage
more participation from the community. 

Oleg

> -- Ken
>
> On Sep 22, 2009, at 5:50am, Oleg Kalnichevski wrote:
>
>>> What's happen is that the "Mes r?f" thing becomes Mes r[0xc3][0xa9]f 
>>> and
>>> unfortunatly doesn't work with the server side.
>>>
>>
>> This is a perfectly valid UTF-8 representation of this character.
>>
>> ---
>> String s = "?";
>> byte[] raw = s.getBytes(Charset.forName("UTF-8"));
>> for (int i = 0; i < raw.length; i++) {
>>    System.out.print("0x" + Integer.toHexString((raw[i] & 0xFF)) + "  
>> ");
>> }
>> ---
>>> 0xc3 0xa9
>> ---
>>
>> Oleg
>
>
> --------------------------
> Ken Krugler
> TransPac Software, Inc.
> <http://www.transpac.com>
> +1 530-210-6378
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message