X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C734A9FB1DD for ; Mon, 10 Jul 2006 14:04:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 05344-05 for ; Mon, 10 Jul 2006 14:04:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from a2s5.a2hosting.com (host-209-124-50-10.a2webhosting.com [209.124.50.10]) by postgresql.org (Postfix) with ESMTP id 0210C9FA50D for ; Mon, 10 Jul 2006 14:04:47 -0300 (ADT) Received: from adsl-6-53-103.tys.bellsouth.net ([65.6.53.103] helo=[192.168.1.10]) by a2s5.a2hosting.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.52) id 1FzzBe-0002F8-0X; Mon, 10 Jul 2006 13:04:46 -0400 In-Reply-To: <33632cf0607100247k1a1fdfd5l9041821fff5c26be@mail.gmail.com> References: <33632cf0607100247k1a1fdfd5l9041821fff5c26be@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <86286FC6-C3A5-47CA-BD81-4D28FE16E8CB@pgedit.com> Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: 7bit From: John DeSoi Subject: Re: How to get rid of unicode Date: Mon, 10 Jul 2006 13:04:06 -0400 To: Vishal Mailinglist X-Mailer: Apple Mail (2.752.2) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s5.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/58 X-Sequence-Number: 22304 On Jul 10, 2006, at 5:47 AM, Vishal Mailinglist wrote: > I am reciving unicode text in one of the table field this actually > breaks my frontend. > I want to create a trigger which will actually detect a unicode > character in the field and change/filter it out. > How to go about this ? See this thread for some ideas and solutions. http://archives.postgresql.org/pgsql-general/2006-05/msg01457.php It would be nice to have a built-in function to make a best effort character conversion rather than generating errors. John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL