Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 75213 invoked from network); 9 Jan 2006 14:08:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Jan 2006 14:08:35 -0000 Received: (qmail 49714 invoked by uid 500); 9 Jan 2006 14:08:34 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 49702 invoked by uid 99); 9 Jan 2006 14:08:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2006 06:08:34 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of marcel.reutegger@gmx.net designates 213.165.64.21 as permitted sender) Received: from [213.165.64.21] (HELO mail.gmx.net) (213.165.64.21) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 09 Jan 2006 06:08:33 -0800 Received: (qmail invoked by alias); 09 Jan 2006 14:08:12 -0000 Received: from bsl-rtr.day.com (EHLO [10.0.0.79]) [212.249.34.130] by mail.gmx.net (mp022) with SMTP; 09 Jan 2006 15:08:12 +0100 X-Authenticated: #894343 Message-ID: <43C26E4A.6080601@gmx.net> Date: Mon, 09 Jan 2006 15:08:10 +0100 From: Marcel Reutegger User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: escape/unescape jcr names implementation References: <299196267.20060109153104@gmail.com> In-Reply-To: <299196267.20060109153104@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Costin, there is a utility class in jackrabbit-commons that you can use: org.apache.jackrabbit.util.ISO9075 the jackrabbit-commons library is built in: trunk/jackrabbit/modules/commons regards marcel Costin Leau wrote: > # sorry for the previous email, I hit the send button accidentally ... > > Hello everybody. > > I'm having some problems with some jcr name which contain illegal > characters as defined in Section 6.2.5.2 of the spec. I am looking for > advices and an implementation that could do the escaping and unescaping using the > _xHHHH_ method and I only found one that does escaping inside > JackRabbit. Isn't there a need to unescape the values into its > original format (so that > String specialStr == unescape(escape(specialStr)) ) ? > > I've seen also a thread from some time ago opened by Brian and the > answer (and the solution used not in Cosmo by looking at the code) > seems to be hex encoding similar to the url one. > > What is the recommended way of encoding/decoding and are some > implementations available out there? I'm trying to find one that > affects the repository as little as possible so that clients > connecting to the repository from outside my app should be able to decode the > names in a standard manner. >