X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ED1DC5E471E for ; Wed, 1 Sep 2004 11:37:30 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95886-09 for ; Wed, 1 Sep 2004 14:37:30 +0000 (GMT) Received: from mailgate3.cinetic.de (mailgate3.cinetic.de [217.72.192.164]) by svr1.postgresql.org (Postfix) with ESMTP id 7A13E5E471C for ; Wed, 1 Sep 2004 11:37:27 -0300 (ADT) Received: from exchange02.int.cinetic.de (exchange02.int.cinetic.de [10.2.1.12]) by mailgate3.cinetic.de (8.11.6p2/8.11.2/SuSE Linux 8.11.0-0.4) with ESMTP id i81EbQK13726; Wed, 1 Sep 2004 16:37:26 +0200 Received: from [10.1.8.177] ([10.1.8.177]) by exchange02.int.cinetic.de with Microsoft SMTPSVC(6.0.3790.0); Wed, 1 Sep 2004 16:36:11 +0200 Message-ID: <4135DE5B.2000805@webde-ag.de> Date: Wed, 01 Sep 2004 16:36:11 +0200 From: Michael Kleiser Reply-To: mkl@webde-ag.de Organization: WEB.DE AG User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.2) Gecko/20040803 X-Accept-Language: de, , de-de, de-at, en, en-us MIME-Version: 1.0 To: =?ISO-8859-1?Q?Robert_Str=F6tgen?= Cc: pgsql-sql@postgresql.org Subject: Re: German "umlaut insensitive" query References: <4135D647.4060203@stroetgen.de> In-Reply-To: <4135D647.4060203@stroetgen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 01 Sep 2004 14:36:11.0942 (UTC) FILETIME=[070EBC60:01C49031] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/17 X-Sequence-Number: 18863 One solution: select replace( replace( replace( replace( 'Test ä ö ü ß', 'ä','ae'), 'ö','oe' ), 'ü','ue'), 'ß','ss' ); replace ------------------ Test ae oe ue ss If you also have upcase-characters, you have to extend the statement. Robert Strötgen schrieb: > I want to query words with German "umlauts" (special characters) with > and without normalization. I want to find "grün" (green) written > "gruen" as well. > > Using "LIKE" with locale de_DE.iso88591 or .utf-8 does not help (Locale > support should affect "LIKE", > http://www.postgresql.org/docs/7.3/static/charset.html#AEN21761). > > Any Idea how to solve this? Define a special Operator? Has anyone > already done this before? > > I am using PostgreSQL 7.3.2 on Linux. > > TIA, > Robert Strötgen. :) >