pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHow to get rid of unicode
4+ messages / 4 participants
[nested] [flat]
* How to get rid of unicode
@ 2006-07-10 09:47 Vishal Mailinglist <list@vishal.net.in>
0 siblings, 3 replies; 4+ messages in thread
From: Vishal Mailinglist @ 2006-07-10 09:47 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: How to get rid of unicode
@ 2006-07-10 16:39 Aaron Bono <postgresql@aranya.com>
parent: Vishal Mailinglist <list@vishal.net.in>
2 siblings, 0 replies; 4+ messages in thread
From: Aaron Bono @ 2006-07-10 16:39 UTC (permalink / raw)
To: Vishal Mailinglist <list@vishal.net.in>; +Cc: pgsql-admin
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?
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: How to get rid of unicode
@ 2006-07-10 16:52 Ivo Rossacher <rossacher@bluewin.ch>
parent: Vishal Mailinglist <list@vishal.net.in>
2 siblings, 0 replies; 4+ messages in thread
From: Ivo Rossacher @ 2006-07-10 16:52 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: How to get rid of unicode
@ 2006-07-10 17:04 John DeSoi <desoi@pgedit.com>
parent: Vishal Mailinglist <list@vishal.net.in>
2 siblings, 0 replies; 4+ messages in thread
From: John DeSoi @ 2006-07-10 17:04 UTC (permalink / raw)
To: Vishal Mailinglist <list@vishal.net.in>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2006-07-10 17:04 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-07-10 09:47 How to get rid of unicode Vishal Mailinglist <list@vishal.net.in>
2006-07-10 16:39 ` Aaron Bono <postgresql@aranya.com>
2006-07-10 16:52 ` Ivo Rossacher <rossacher@bluewin.ch>
2006-07-10 17:04 ` John DeSoi <desoi@pgedit.com>
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