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 1559A9FB2D5 for ; Mon, 10 Jul 2006 13:53:06 -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 02337-05 for ; Mon, 10 Jul 2006 13:53:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail15.bluewin.ch (mail15.bluewin.ch [195.186.18.63]) by postgresql.org (Postfix) with ESMTP id 5EB109FB2FF for ; Mon, 10 Jul 2006 13:53:01 -0300 (ADT) Received: from [192.168.1.74] (85.2.27.16) by mail15.bluewin.ch (Bluewin 7.3.110.2) id 44925296006028A8 for pgsql-admin@postgresql.org; Mon, 10 Jul 2006 16:52:59 +0000 From: Ivo Rossacher To: pgsql-admin@postgresql.org Subject: Re: How to get rid of unicode Date: Mon, 10 Jul 2006 18:52:42 +0200 User-Agent: KMail/1.8.2 References: <33632cf0607100247k1a1fdfd5l9041821fff5c26be@mail.gmail.com> In-Reply-To: <33632cf0607100247k1a1fdfd5l9041821fff5c26be@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607101852.42592.rossacher@bluewin.ch> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/57 X-Sequence-Number: 22303 You can ask the server to translate everything to the needed encoding by setting the clientencoding correctly (if you do not have SQLASCII as server encoding, otherwise think about fixing this issue by selecting a reasonable server encoding for your application). Example : set client_encoding='Latin1'; This has to be set at the beginning of the sesion. Then the server will deliver all the strings in Latin1 encoding. If you need this special encoding at a special place in your application you might get it solved by a function or use the convert function within a select. Best regards Ivo Am Montag, 10. Juli 2006 11.47 schrieb Vishal Mailinglist: > Dear All , > > 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 ? > > > Regards, > Vishal Kashyap. > http://vishal.net.in