RE: accessing extended ranges

From: Marco Cimarosti (marco.cimarosti@essetre.it)
Date: Tue Mar 26 2002 - 07:46:42 EST


Ben Monroe wrote:
> [...]
> Directly using the 5 value format /uxxxxx produces are
> Unicode character followed by the 5th x. [...]
> String s3 = "\u2A6A5"; // [...]

On the Unicode List there are a few Java experts, so I guess you'll have a
definite answer soon.

In the meanwhile, if you feel like doing experiments, have you tried this?

        String s3 = "\uD869\uDEA5";

The pair of "surrogates" U+D869 and U+DEA5 are the UTF-16 representation of
U-2A6A5. I guess that this might work if you have a UTF-16 version of Java
API.

_ Marco



This archive was generated by hypermail 2.1.2 : Tue Mar 26 2002 - 09:06:30 EST