Re: utf8 errors

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: Jiří Pavlovský <jiri(at)pavlovsky(dot)eu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: utf8 errors
Date: 2013-06-25 19:29:01
Message-ID: 51C9EF7D.4040904@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/25/2013 12:18 PM, Jiří Pavlovský wrote:
> Hello,
>
> I have a win32 application. It uses gtk for GUI and postgres. Recently I
> upgraded to newer gtk and postgres 9.2. I'm now getting utf8 errors from
> postgres.
> The thing I don't understand that the queries, which postgres complains
> about, seem to be perfectly valid.
>
> For example
> LOG: statement: INSERT INTO recipients (DealID,
> Contactid) VALUES (29009, 9387)
> ERROR: invalid byte sequence for encoding "UTF8": 0x9c
>
>
> But the query is clean ascii and it doesn't even contain the mentioned
> character.
>
> My database is in UNICODE, client encoding is utf8.

At a guess your client encoding is actually some form of WINXXXX, most
likely WIN1252.

>
> So I'm stuck not knowing where to look for a problem.
>
> Thank you,
> Jiri
>

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

  • utf8 errors at 2013-06-25 19:18:32 from Jiří Pavlovský

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2013-06-25 19:39:58 Re: utf8 errors
Previous Message Jiří Pavlovský 2013-06-25 19:18:32 utf8 errors