Java, UCS-2, and UTF

From: Everett Anderson (
Date: Tue May 09 2000 - 22:45:05 EDT


I have a question about transmission formats for Unicode with the Java

First of all, does anyone know how Java encodes its chars? I'm under the
impression that it's UCS-2.

Is it possible to send all 16-bit Java chars (converted directly to bytes
without using a character converter) over the network and have another
program successfully convert them to Unicode? Is it required that they be
put into a UTF format for transmission?


This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:02 EDT