| From: | Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp> |
|---|---|
| To: | desoi(at)pgedit(dot)com |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Lossy character conversion to Latin-1 |
| Date: | 2006-05-31 13:26:42 |
| Message-ID: | 20060531.222642.06944432.t-ishii@sraoss.co.jp |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
> I have a client that only supports Latin-1 and needs to connect to a
> UTF-8 database to retrieve some data. Some columns may contain
> characters that have no Latin-1 equivalent. I would like to convert
> these to a blank or perhaps some hex value. Is there any way to do
> this in PostgreSQL without using anything other than built in
> functions or pl/pgsql? It would be nice if the built in convert
> function had an option to handle this rather than only generating an
> error. Any pointers to an existing pl/pgsql function to perform this
> conversion?
It should be easy to write user defined funtion and define your own
CONVERSION. CREATE CONVERSION is your friend.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stuart Bishop | 2006-05-31 13:35:20 | Re: Best high availability solution ? |
| Previous Message | Nis Jorgensen | 2006-05-31 13:18:00 | Re: PGSQL 7.4 -> 8.1 migration & performance problem |