At 08:41 AM 11/26/2001, Bernard Granier wrote:
>My problem is that :
>On the unicode site (www.unicode.org), it seems that unicode encoding of
>LATIN SMALL LETTER E WITH ACUTE is 00E9, but if you use the method getBytes
>on a String object which contains LATIN SMALL LETTER E WITH ACUTE you get
>"0xc3 0xa9" ...

0xc3,0xa9 is the UTF-8 representation of 00E9 (see RFC2044).

According to the docs, String.getBytes()  converts "String into bytes
according to the platform's default character encoding..."  So my guess is
the platform you're running on has UTF8 as a default encoding, and that's
what you get back, not a UNICODE value.

Regards
Dmitry

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to