Re: Fwd: Invalid byte sequence - Mailing list pgsql-odbc

From TomGoodman@mhproez.com
Subject Re: Fwd: Invalid byte sequence
Date
Msg-id b7abdcf3-b347-4930-b6bb-d1796048095e@mhproez.com
Whole thread
In response to Fwd: Invalid byte sequence  (Igor Korot <ikorot01@gmail.com>)
List pgsql-odbc

Igor,

Well, the Postgres message is correct. That sequence is not valid UTF8. Your choices seem to be to fix and clean the data so it is valid UTF8 or change the encoding to a less validated set.

Some sources:

https://stackoverflow.com/questions/4867272/invalid-byte-sequence-for-encoding-utf8

https://stackoverflow.com/questions/32239350/invalid-byte-sequence-for-encoding-utf8-0xed-0xa0-0xbd

https://stackoverflow.com/questions/6555015/check-for-invalid-utf8/6555104#6555104

On 2026-10-07 21:33, Igor Korot wrote:
Does anyone have an idea of what is happening?

Thank you.


---------- Forwarded message ---------
From: Igor Korot <ikorot01@gmail.com>
Date: Tue, Oct 6, 2026 at 12:23 AM
Subject: Invalid byte sequence
To: PostgreSQL ODBC list <pgsql-odbc@postgresql.org>


Hi, ALL,

When  run my program and connect to the Postgres server with ODBC
INTERMITTENTLY receive the error:

ERROR: invalid byte sequence for encoding "UTF8" 0xed 0xbf 0xa0
Does this sound familiar to anyone?

Thank you.

Trying to google I only got meaningful sugesston for when the last byte s 0

I code n C++.

pgsql-odbc by date:

Previous
From: Igor Korot
Date:
Subject: Fwd: Invalid byte sequence
Next
From: "M. Neumann - Prisma Computer"
Date:
Subject: Re: Fwd: Invalid byte sequence