Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 3393 invoked from network); 21 Nov 2005 12:01:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Nov 2005 12:01:40 -0000 Received: (qmail 21168 invoked by uid 500); 21 Nov 2005 12:01:32 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 21132 invoked by uid 500); 21 Nov 2005 12:01:32 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 21121 invoked by uid 99); 21 Nov 2005 12:01:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2005 04:01:32 -0800 Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.18.242.163] (HELO mail.cellectivity.com) (212.18.242.163) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2005 04:03:04 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5EE93.4218EE1F" Subject: RE: [MINA]RE: Decoding/Encoding UTF representation Date: Mon, 21 Nov 2005 12:01:08 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [MINA]RE: Decoding/Encoding UTF representation thread-index: AcXsqzD+nyLoB9M+T52wcJxMUSh/nQB4EhqgAAEPzpA= From: "Jose Alberto Fernandez" To: "Apache Directory Developers List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C5EE93.4218EE1F Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 ________________________________ From: Trustin Lee [mailto:trustin@gmail.com]=20 Sent: 19 November 2005 01:47 To: Apache Directory Developers List Subject: Re: Decoding/Encoding UTF representation =20 2005/11/19, Jose Alberto Fernandez < jalberto@cellectivity.com >: Of course I would like MINA's codec to be able to read/write this information without needing the use of Streams or the StreamIoHandler if I can help it. Are there any examples of what is required to do this? I looked at MINA's ByteBuffer .putString() and ByteBuffer.getString() but I am not sure how to use them. Please take a look at ByteBufferTest.testGet(Put)String(). You'll learn how to use them. Hi Trustin, I took a look at it but I guess I still have some lingering questions: =20 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 .=20 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. =20 Any hint will be appreciated. =20 Jose Alberto =20 ------_=_NextPart_001_01C5EE93.4218EE1F Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 


From: Trustin Lee [mailto:trustin@gmail.com]
Sent: 19 November 2005 = 01:47
To: Apache Directory = Developers List
Subject: Re: = Decoding/Encoding UTF representation

 

2005/11/19, Jose Alberto Fernandez < = jalberto@cellectivity.com>:

Of course I would like MINA's codec to be able to read/write this = information without needing the use of Streams or the StreamIoHandler if I can help = it. Are there any examples of what is required to do this? I looked at MINA's  ByteBuffer .putString() and ByteBuffer.getString() but I am not = sure how to use them.

Please take a look at ByteBufferTest.testGet(Put)String().  = You'll learn how to use them.


 Hi Trustin, I took a = look at it but I guess I still have some lingering = questions:

 

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.

 

Any hint will be = appreciated.

 

Jose = Alberto

 

------_=_NextPart_001_01C5EE93.4218EE1F--