Lossy character conversion to Latin-1

From: John DeSoi <desoi(at)pgedit(dot)com>
To: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Lossy character conversion to Latin-1
Date: 2006-05-30 15:19:42
Message-ID: 6E891C11-EC36-49B8-9533-A82412A814E1@pgedit.com
Views: Raw Message | Whole Thread | 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?

Thanks,

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dan Black 2006-05-30 16:04:12 Re: Charset conversion error
Previous Message Teodor Sigaev 2006-05-30 14:50:10 Re: Compound words giving undesirable results with tsearch2