[kaffe] What UnicodeLittle should be?

Ito Kazumitsu ito.kazumitsu at hidec.co.jp
Thu Jun 23 20:00:41 PDT 2005

From: Ito Kazumitsu <ito.kazumitsu at hidec.co.jp>
Subject: [kaffe] What UnicodeLittle should be?
Date: Fri, 24 Jun 2005 11:37:54 +0900 (JST)

> iconv, which kaffe used before importing gnu.java.nio.charset,
> treats UnicodeLittle as an alias of UCS-2LE (WITHOUT byte order mark).
> But gnu.java.nio.charset.UnicodeLittle treats it as UTF-16
> little endian WITH byte order mark.
> I do not know which is correct, but seeing the behavior of
> Java Excel API, I think iconv's implementation is correct.

But http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html
says about UnicodeLittle,

  Sixteen-bit Unicode Transformation Format, little-endian byte order, 
  with byte-order mark

So, gnu.java.nio.charset.UnicodeLittle must be correct.

More information about the kaffe mailing list