[6099] in java-interest

home help back first fref pref prev next nref lref last post

Unicode in Java

daemon@ATHENA.MIT.EDU (Nic Fulton +44 171 510 8223)
Tue Mar 19 16:39:11 1996

Date:         Tue, 19 Mar 1996 16:34:47 -0500
Reply-To: Java Interest <JAVA-INTEREST@JAVASOFT.COM>
From: Nic Fulton +44 171 510 8223 <nic.fulton@REUTERS.COM>
To: Multiple recipients of list JAVA-INTEREST
              <JAVA-INTEREST@JAVASOFT.COM>

Dear All,

Does Java really support UNICODE. We are told that it has
an internal Character representation that is double byte,
and this is UNICODE, but how can we be sure.

It appears, at least for Windows NT, that there is no way
of outputting the UNICODE characters to the screen. I have
tried many permutation, installing UNICODE fonts, and
changing my properties file to override the fonts Java
uses, but with no success. All I get as output is the
lower byte Latin-1 characters on the screen even if I have
defined a string in Russian, Greek or whatever.

Can anyone tell me any hints or tips on getting this to
work. OR, will someone at SUN let us know when we can
expect there to be a way of writing non-Latin-1 characters
to the screen.

I am beginning to re-read the help pages that say:

"Parameters:
          "ascii - the byte that will be converted to characters
          "hibyte - the top 8 bits of each 16 bit Unicode character"

to actually read:

...
          "hibyte - ignored: set to zero"

In fact this whole 'ascii - the byte that...' line is
pretty strange since both ascii and hibyte get converted
to a unique character.

BTW. For those of you who dislike Microsoft (I know there are a
few), please note that they have even got NotePad.exe on
Windows NT to support UNICODE! If Microsoft can do it, can't
Java ?

Thanks for any help,

Regards,

Nic Fulton
(nic.fulton@reuters.com)

P.S. Please send responses straight to me.

home help back first fref pref prev next nref lref last post