OK, either Oleg gets up even earlier than me, or he's not on west coast time :)

-- 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to