re: Java and UTF

From: Pierre Lewis (lew@nortel.ca)
Date: Wed Jul 02 1997 - 11:28:00 EDT


In message "re: Java and UTF", 'dank@alumni.caltech.edu' writes:

> It looks like there are indeed convenient ways to convert to and
> from UTF-8 in JDK 1.1. For instance,

http://java.sun.com/products/jdk/1.1/docs/api/java.io.DataOutput.html#writeUTF(java.lang.String)
http://java.sun.com/products/jdk/1.1/docs/api/java.io.DataInputStream.html#readUTF(java.io.DataInput)

> These methods have the disadvantage that they store the length of the
> string in front of the string, but hey, ya take what ya can get!

I know about these, and, because they also store the length (a binary
number), they're useless for, say, a Unicode plain-text editor.

I have looked at the char streams, but haven't seen yet anything
there that actually supports UTF-8. Lots of other goodies, but not
UTF-8.

Pierre



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:35 EDT