Re: invalid byte sequence for encoding "UTF8": - Mailing list pgsql-novice

From ries van Twisk
Subject Re: invalid byte sequence for encoding "UTF8":
Date
Msg-id 7AA9DE1D-DA0A-4ED4-907F-289FC887E202@rvt.dds.nl
Whole thread Raw
In response to invalid byte sequence for encoding "UTF8":  (kulmacet101@kulmacet.com)
Responses Re: invalid byte sequence for encoding "UTF8":  (kulmacet101@kulmacet.com)
List pgsql-novice
On Jan 8, 2009, at 2:34 PM, kulmacet101@kulmacet.com wrote:

> All,
>
> I have a new postgresql<8.3.4> build on linux<CentOS5> with PHP
> talking to
> this database. If I try and update or insert on data that has special
> characters I get this error:
>
> ERROR:  invalid byte sequence for encoding "UTF8": 0xa9
> HINT:  This error can also happen if the byte sequence does not
> match the
> encoding expected by the server, which is controlled by
> "client_encoding".
> STATEMENT:  UPDATE preferences SET property = $1,preference_value =
> $2,comment = $3,topic = $4 WHERE app_hash =
> '50e2606ed950e8021d64349b49f4ee48'
>
> I have read some articles about client_encoding but I do not know
> how to
> get around this error.
>
> Any help or support appreciated.
> Thanks in advance,
> Kulmacet




Kulmacet,

is your source data also in UTF-8 ?

Ries





pgsql-novice by date:

Previous
From: kulmacet101@kulmacet.com
Date:
Subject: invalid byte sequence for encoding "UTF8":
Next
From: kulmacet101@kulmacet.com
Date:
Subject: Re: invalid byte sequence for encoding "UTF8":