Re: PLPERL function error - utf-8 to iso8859-1 - Mailing list pgsql-general

From Tom Lane
Subject Re: PLPERL function error - utf-8 to iso8859-1
Date
Msg-id 12466.1066190832@sss.pgh.pa.us
Whole thread Raw
In response to PLPERL function error - utf-8 to iso8859-1  ("Patrick Hatcher" <PHatcher@macys.com>)
Responses Re: PLPERL function error - utf-8 to iso8859-1
List pgsql-general
"Patrick Hatcher" <PHatcher@macys.com> writes:
> Trying to create a plperl function to strip non-friendly mainframe
> characters from a string.  However, when I try to add the Trademark symbol
> (™) as a replace criteria, PG spits back an error:
> ERROR:  Could not convert UTF-8 to ISO8859-1

AFAICT this means that the trademark symbol is not in the character set
that you've specified to be used in the database; accordingly there's no
need to try to prevent it from being stored...

Perhaps you should have selected the database encoding to be the same as
what you're using on the client side.

            regards, tom lane

pgsql-general by date:

Previous
From: Jean-Christian Imbeault
Date:
Subject: PostgreSQL article in phparchitect
Next
From: Stephan Szabo
Date:
Subject: Re: Indexes?