Hi Oleg,

On Sep 22, 2009, at 7:07am, Oleg Kalnichevski wrote:

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.

That was definitely not the intended outcome of my email.

Especially since if the question covers anything other than charset issues, the odds of my replying (at least with a useful answer) is slim to none.

-- 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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to