From: | Ivo Rossacher <rossacher(at)bluewin(dot)ch> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: How to get rid of unicode |
Date: | 2006-07-10 16:52:42 |
Message-ID: | 200607101852.42592.rossacher@bluewin.ch |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
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 | Date | Subject | |
---|---|---|---|
Next Message | John DeSoi | 2006-07-10 17:04:06 | Re: How to get rid of unicode |
Previous Message | Aaron Bono | 2006-07-10 16:39:00 | Re: How to get rid of unicode |