How to avoid error with convert() function

From: zeljko <zeljko(at)holobit(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: How to avoid error with convert() function
Date: 2006-09-23 18:07:22
Message-ID: ef3sv0$24cg$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

SELECT convert(myfield,'LATIN2','WIN1250') FROM tbl;

ERROR: character 0x828e of encoding "MULE_INTERNAL" has no equivalent in
"WIN1250"

I know I have few characters like this one in table with about 1.000.000
rows.
How to avoid such error and show eg. ? instead of error , or how to replace
such characters with some normal chars ?

tnx

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Russ Brown 2006-09-23 22:58:48 Re: Optimising a query requiring seqscans=0
Previous Message Ben 2006-09-23 06:38:12 powerset?