X-Original-To: pgsql-sql@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 089C59250D8 for ; Tue, 27 May 2003 18:15:59 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 20122-06 for ; Tue, 27 May 2003 18:15:57 -0400 (EDT) Received: from post.webmailer.de (natsmtp00.webmailer.de [192.67.198.74]) by developer.postgresql.org (Postfix) with ESMTP id F123C925092 for ; Tue, 27 May 2003 18:15:56 -0400 (EDT) Received: from iwate.ianb.homelinux.net (pD9517945.dip.t-dialin.net [217.81.121.69]) by post.webmailer.de (8.12.8/8.8.7) with ESMTP id h4RMFtvx016713; Wed, 28 May 2003 00:15:55 +0200 (MEST) From: Ian Barwick To: , Subject: Re: Getting rid of accents.. Date: Wed, 28 May 2003 00:15:02 +0200 User-Agent: KMail/1.5.1 References: <1140.219.65.226.152.1054068906.squirrel@mail.trade-india.com> In-Reply-To: <1140.219.65.226.152.1054068906.squirrel@mail.trade-india.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200305280015.02483.barwick@gmx.net> X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/530 X-Sequence-Number: 13695 On Tuesday 27 May 2003 22:55, mallah@trade-india.com wrote: > Is there any easy way for converting accented text to > closest text without accents in postgresql ? > > eg: > > BÂLÂ MORGHÂB to BALA MORGHAB Have you looked at to_ascii()? Something along the lines of select to_ascii('Â', 'LATIN1') Ian Barwick barwick@gmx.net