|
From: Tony W. <wuy...@gm...> - 2006-12-29 07:37:52
|
Hi Ram,
yes, you are right. But I tested the icu4j 3.6. It did not prepend a
BOM on output.
On 12/29/06, Ram Viswanadha <ram...@gm...> wrote:
> Hi Tony,
> "UTF-16" alias is ambiguous, it can either be Big Endian or Little Endian.
> To disambiguate ICU prepends a BOM on output. This is by design.
>
> On 12/28/06, Tony Wu <wuy...@gm...> wrote:
> > Hi all,
> >
> > The test below prints 0, 61.
> >
> > Charset c
> =com.ibm.icu4jni.charset.CharsetICU.forName ("UTF-16");
> > ByteBuffer buffer = c.encode(CharBuffer.wrap("aaaa"));
> > System.out.println(Integer.toHexString(buffer.array()[0]));
> > System.out.println(Integer.toHexString(buffer.array ()[1]));
> >
> > I just want to confirm if the Encoder for utf-16 in icu4jni3.6 will
> > encode with a BOM. Please correct me if I'm wrong. Great thanks.
> >
>
>
>
> --
> Best Regards,
> Ram Viswanadha
> ICU
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> icu-support mailing list -
> icu...@li...
> To Un/Subscribe:
> https://lists.sourceforge.net/lists/listinfo/icu-support
>
>
>
--
Tony Wu
China Software Development Lab, IBM
|