Re: PLPERL function error - utf-8 to iso8859-1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Patrick Hatcher" <PHatcher(at)macys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PLPERL function error - utf-8 to iso8859-1
Date: 2003-10-15 04:07:12
Message-ID: 12466.1066190832@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Patrick Hatcher" <PHatcher(at)macys(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-10-15 04:10:55 Re: Indexes?
Previous Message Jean-Christian Imbeault 2003-10-15 04:05:29 PostgreSQL article in phparchitect