directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <>
Subject Re: [MINA]RE: Decoding/Encoding UTF representation
Date Mon, 21 Nov 2005 12:11:45 GMT
2005/11/21, Jose Alberto Fernandez <>:
>   My clients are J2ME devices, so I have a very sharp limit on the APIs
> that I can rely on and what I can use.
> If I use DataOutput.writeUTF(String)/DataInput.readUTF(), the wire format
> will be something like <size> <ModifiedUTF-8StringRep>.
> Do you know if there is a CharSet definition for the "Modified UTF-8"
> format? I am never certain which one do the official UTF-8 and which ones do
> Java's own modified representation.

There's no support for pascal strings yet. But I think it is a great idea to
add ByteBuffer.put/getPascalString(...). You can also provide us some
patches if you've implemented it already

what we call human nature is actually human habit

View raw message