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 BA8D7924D51 for ; Tue, 27 May 2003 19:58:32 -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 40187-05 for ; Tue, 27 May 2003 19:58:28 -0400 (EDT) Received: from rtlocal.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by developer.postgresql.org (Postfix) with SMTP id 28E86924CF9 for ; Tue, 27 May 2003 19:58:25 -0400 (EDT) Received: (qmail 9043 invoked from network); 28 May 2003 00:01:49 -0000 Received: from unknown (HELO trade-india.com) (unknown) by unknown with SMTP; 28 May 2003 00:01:49 -0000 Received: (qmail 26937 invoked by uid 505); 27 May 2003 23:57:56 -0000 Received: from mallah@trade-india.com by ns1.trade-india.com by uid 502 with qmail-scanner-1.16 (clamscan: 0.54. spamassassin: 2.54. Clear:SA:0(-100.1/5.0):. Processed in 0.966934 secs); 27 May 2003 23:57:56 -0000 X-Spam-Status: No, hits=-100.1 required=5.0 Received: from ns1.trade-india.com (HELO trade-india.com) (66.234.10.14) by ns1.trade-india.com with SMTP; 27 May 2003 23:57:54 -0000 Received: from 219.65.226.152 (SquirrelMail authenticated user mallah) by mail.trade-india.com with HTTP; Wed, 28 May 2003 05:27:54 +0530 (IST) Message-ID: <1279.219.65.226.152.1054079874.squirrel@mail.trade-india.com> Date: Wed, 28 May 2003 05:27:54 +0530 (IST) Subject: Re: Getting rid of accents.. From: To: , In-Reply-To: <200305280015.02483.barwick@gmx.net> References: <1140.219.65.226.152.1054068906.squirrel@mail.trade-india.com> <200305280015.02483.barwick@gmx.net> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/532 X-Sequence-Number: 13697 Thanks Ian , Indeed its the simplest/easiest solution to this problem i feel. i did tried to_ascii function but was not specifying 'LATIN1' do i was getting error tradein_clients=# SELECT to_ascii('BĀLĀ MORGHĀB' ); ERROR: pg_to_ascii(): unsupported encoding from SQL_ASCII would u like to explain it ? Then i created a new database in latin1 encoding loaded the data used to_ascii to convert , copied the data to new file and reloaded back to original database ;-) .oO (tiring ) Lucas Thanks for that perl stuff too i will use it in some program that stuffs arbitary text into database. Regds Mallah. > 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 > > > ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off > all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) ----------------------------------------- Get your free web based email at trade-india.com. "India's Leading B2B eMarketplace.!" http://www.trade-india.com/