From: Ivo Rossacher <rossacher@bluewin.ch>
To: pgsql-admin@postgresql.org
Subject: Re: How to get rid of unicode
Date: Mon, 10 Jul 2006 18:52:42 +0200
Message-ID: <200607101852.42592.rossacher@bluewin.ch> (raw)
In-Reply-To: <33632cf0607100247k1a1fdfd5l9041821fff5c26be@mail.gmail.com>
References: <33632cf0607100247k1a1fdfd5l9041821fff5c26be@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: rossacher@bluewin.ch
Subject: Re: How to get rid of unicode
In-Reply-To: <200607101852.42592.rossacher@bluewin.ch>
References: <33632cf0607100247k1a1fdfd5l9041821fff5c26be@mail.gmail.com> <200607101852.42592.rossacher@bluewin.ch>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox