Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 86048 invoked from network); 29 Dec 2006 16:43:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Dec 2006 16:43:37 -0000 Received: (qmail 62508 invoked by uid 500); 29 Dec 2006 16:43:43 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 62471 invoked by uid 500); 29 Dec 2006 16:43:43 -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 62460 invoked by uid 99); 29 Dec 2006 16:43:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Dec 2006 08:43:43 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of elecharny@gmail.com designates 64.233.162.236 as permitted sender) Received: from [64.233.162.236] (HELO nz-out-0506.google.com) (64.233.162.236) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Dec 2006 08:43:34 -0800 Received: by nz-out-0506.google.com with SMTP id i28so2759049nzi for ; Fri, 29 Dec 2006 08:43:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=MVhrPBd3vy0QtTRoSaDEM3XSvyOIKBnVwtYHVwtWiUokx7a4n7IX4/r/2h2IKij6jCPn6liSLX4TJ0G/N8NB6nzwHoApmPKmrRSyx81evp2jag3KP5gweLc0CPlNGdVNnQlnoTXvViivYUufcVp5AyQPq2QOXsQa+V1v75fyOJE= Received: by 10.64.148.8 with SMTP id v8mr13569958qbd.1167410593920; Fri, 29 Dec 2006 08:43:13 -0800 (PST) Received: by 10.65.84.15 with HTTP; Fri, 29 Dec 2006 08:43:13 -0800 (PST) Message-ID: Date: Fri, 29 Dec 2006 17:43:13 +0100 From: "Emmanuel Lecharny" Reply-To: elecharny@apache.org To: "Apache Directory Developers List" Subject: Re: UTF-8 woes In-Reply-To: <20061229162752.GA28317@easy2.in-chemnitz.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_102009_9966253.1167410593773" References: <20061229162752.GA28317@easy2.in-chemnitz.de> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_102009_9966253.1167410593773 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline AAAAAAHHHHHhhhh ! (Or is it \C3\C3\C3\C3\C3\C3HHHHHhhhh ? :) You will have to be a little bit more explicit... How do you build your RDN= ? FYI, it is supposed to be a UTF-8 encoded String, so if you are to code an =E4, you will have to : - create a byte array containing it's counterpart (0xC3 0xa4) and do a new String( byteArray, "UTF-8" ) before passing it to the RDN constructor - OR do a new RDN( "\u00e4" ); never do a new RDN( "=E4" ), because then the String will be considered as ISO-8859-1 encoded string (at least in Germany or in France, not in Turkey :) Does it help you to figure out what can be the probem ? Emmanuel L\u00e9charny :) On 12/29/06, Tino Schwarze wrote: > > Hi there, > > we had an UTF-8 discussion this week, didn't we? > > I'm serving content from my open-EIS partition and UTF-8 characters get > garbled. I see that it happends because I build a RDN for the > SearchResult and dhe RdnParser will escape non-ASCII characters in the > values. (Like '\C3\A4' for German Umlaut =E4). > > JXplorer shows this as %5cC3%5cA4 and sends it back this way when I try > to expand the appropiate node. > > Who is to blame and what can I do about that? > > Thanks, > > Tino. > > -- > www.quantenfeuerwerk.de > www.spiritualdesign-chemnitz.de > www.lebensraum11.de > --=20 Cordialement, Emmanuel L=E9charny www.iktek.com ------=_Part_102009_9966253.1167410593773 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline AAAAAAHHHHHhhhh ! (Or is it \C3\C3\C3\C3\C3\C3HHHHHhhhh ? :)

You wil= l have to be a little bit more explicit... How do you build your RDN? FYI, = it is supposed to be a UTF-8 encoded String, so if you are to code an =E4, = you will have to :
- create a byte array containing it's counterpart (0xC3 0xa4) and d= o a new String( byteArray, "UTF-8" ) before passing it to the RDN= constructor
- OR do a new RDN( "\u00e4" );

never do a = new RDN( "=E4" ), because then the String will be considered as I= SO-8859-1 encoded  string (at least in Germany or in France, not in Tu= rkey :)=20

Does it help you to figure out what can be the probem ?

Emma= nuel L\u00e9charny :)

On 12/29/06, = Tino Schwarze < apacheds.lists@tisc.de> wrote:
Hi there,

we had an UTF-8 discussion this= week, didn't we?

I'm serving content from my open-EIS partition and UTF-8 charac= ters get
garbled. I see that it happends because I build a RDN for theSearchResult and dhe RdnParser will escape non-ASCII characters in the
values. (Like '\C3\A4' for German Umlaut =E4).

JXplorer = shows this as %5cC3%5cA4 and sends it back this way when I try
to expand= the appropiate node.

Who is to blame and what can I do about that?

Thanks,

Tino.

--
www.quantenfeuerwerk.de
www.spiritualdesign-chemnitz.de
www.lebensraum11.de



-- =
Cordialement,
Emmanuel L=E9charny
www.iktek.com ------=_Part_102009_9966253.1167410593773--