Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 81992 invoked from network); 15 Sep 2009 08:28:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Sep 2009 08:28:25 -0000 Received: (qmail 33235 invoked by uid 500); 15 Sep 2009 08:28:24 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 33183 invoked by uid 500); 15 Sep 2009 08:28:24 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 33175 invoked by uid 99); 15 Sep 2009 08:28:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 08:28:24 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-inf-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 08:28:13 +0000 Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n8F8Rlnf029080 for ; Tue, 15 Sep 2009 08:27:47 GMT MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=iso-8859-1 Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KQ0007006XX2E00@fe-emea-09.sun.com> for derby-user@db.apache.org; Tue, 15 Sep 2009 09:27:36 +0100 (BST) Received: from localhost ([unknown] [129.159.112.134]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KQ000AT07HZLS50@fe-emea-09.sun.com> for derby-user@db.apache.org; Tue, 15 Sep 2009 09:27:36 +0100 (BST) Date: Tue, 15 Sep 2009 10:27:33 +0200 From: Knut Anders Hatlen Subject: Re: Accent-insensitive searches In-reply-to: <25433944.post@talk.nabble.com> Sender: Knut.Hatlen@Sun.COM To: Derby Discussion Message-id: Organization: Sun Microsystems References: <25362254.post@talk.nabble.com> <25433944.post@talk.nabble.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org josu writes: > Knut Anders Hatlen wrote: >> >> You can verify that the database was created with the correct territory >> and collation by evaluating this in IJ and see that "TERRITORY_BASED" is >> returned: >> ... >> And also check that service.properties in the database directory >> contains the following line: >> >> derby.serviceLocale=es_ES_accentinsensitive >> > > I checked both, and they're ok. But the result of the queries is still > accent-sensitive. I'm working with Windows XP and it seems you're working > with Linux, could that be the reason of the different behaviour? Maybe. I've only tried it on Solaris, and I don't know if there are any differences on other platforms. To check that the Java VM picks up your collator correctly, you could try this code and see what it prints: Locale locale = new Locale("es", "ES", "accentinsensitive"); Collator c = Collator.getInstance(locale); System.out.println(c.compare("electrico", "el�ctrico")); "0" should be printed if your custom collator has been correctly installed. -- Knut Anders