UTF-16 not supported?

Tom Tromey tromey@redhat.com
Fri Aug 16 09:49:00 GMT 2002


>>>>> "Suresh" == Suresh Raman <sugansha@yahoo.com> writes:

Suresh> The output of the program should be "hello world", which it is with
Suresh> UTF-8.  But with UTF-16 or UTF-16BE, the output is a truncated string
Suresh> "hell" or "hello".

This is definitely a bug.
I think there are situations where the encoding/decoding functions can
mistake "lack of progress" for "I'm done".  I'm not certain but it is
possible that this code triggers that bug.

Tom



More information about the Java mailing list