From list@vishal.net.in Mon Jul 10 09:47:37 2006 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 1C2639FB27A for ; Mon, 10 Jul 2006 06:47:37 -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 62408-09 for ; Mon, 10 Jul 2006 06:47:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by postgresql.org (Postfix) with ESMTP id 36D319FB26F for ; Mon, 10 Jul 2006 06:47:27 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id x30so361730nfb for ; Mon, 10 Jul 2006 02:47:26 -0700 (PDT) Received: by 10.49.64.9 with SMTP id r9mr3564215nfk; Mon, 10 Jul 2006 02:47:26 -0700 (PDT) Received: by 10.49.31.3 with HTTP; Mon, 10 Jul 2006 02:47:25 -0700 (PDT) Message-ID: <33632cf0607100247k1a1fdfd5l9041821fff5c26be@mail.gmail.com> Date: Mon, 10 Jul 2006 15:17:25 +0530 From: "Vishal Mailinglist" To: pgsql-admin@postgresql.org Subject: How to get rid of unicode MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_57241_31129416.1152524845882" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/51 X-Sequence-Number: 22297 ------=_Part_57241_31129416.1152524845882 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_57241_31129416.1152524845882 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_57241_31129416.1152524845882-- From postgresql@aranya.com Mon Jul 10 16:39:12 2006 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 E6A739FB2BB for ; Mon, 10 Jul 2006 13:39:12 -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 00640-02 for ; Mon, 10 Jul 2006 13:39:02 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by postgresql.org (Postfix) with ESMTP id 017D49FB259 for ; Mon, 10 Jul 2006 13:39:01 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id y25so705350nfb for ; Mon, 10 Jul 2006 09:39:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=JuWEcJNE9iRddThS+A9+UwyHVD9OaOKDkG3OF8c8TW2FHzP/nTVXfiWpABlu7CNM/dscyhnCzvEkKcKGKgwEbuuS8ilChcnwrvgH3lccW3CZ7hd+G8qrizUDXf2rdqxNsxcVDJeVuDviSa7ln9KL9mzoerSquuAcyDfx5+UEJ0M= Received: by 10.78.160.2 with SMTP id i2mr1770115hue; Mon, 10 Jul 2006 09:39:00 -0700 (PDT) Received: by 10.78.29.2 with HTTP; Mon, 10 Jul 2006 09:39:00 -0700 (PDT) Message-ID: Date: Mon, 10 Jul 2006 11:39:00 -0500 From: "Aaron Bono" To: "Vishal Mailinglist" Subject: Re: How to get rid of unicode Cc: pgsql-admin@postgresql.org In-Reply-To: <33632cf0607100247k1a1fdfd5l9041821fff5c26be@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_33857_25239602.1152549540045" References: <33632cf0607100247k1a1fdfd5l9041821fff5c26be@mail.gmail.com> X-Google-Sender-Auth: 2a5964d2f4f97ff0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/59 X-Sequence-Number: 22305 ------=_Part_33857_25239602.1152549540045 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/10/06, Vishal Mailinglist wrote: > > 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 > What are you converting it to? ASCII? ------=_Part_33857_25239602.1152549540045 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/10/06, Vishal Mailinglist <list@vishal.net.in> wrote:
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

What are you converting it to?  ASCII?

------=_Part_33857_25239602.1152549540045-- From rossacher@bluewin.ch Mon Jul 10 16:53:06 2006 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 From desoi@pgedit.com Mon Jul 10 17:04:53 2006 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