| From: | "TomGoodman(at)mhproez(dot)com" <tomgoodman(at)mhproez(dot)com> |
|---|---|
| To: | pgsql-odbc(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Fwd: Invalid byte sequence |
| Date: | 2026-10-08 01:46:44 |
| Message-ID: | b7abdcf3-b347-4930-b6bb-d1796048095e@mhproez.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
Tom Goodman, email TomGoodman(at)MHProEZ(dot)com
1406 Tenth St., Bay City, MI 48708, USA, Phone +1 989 482 0489
* God grant me the serenity to accept the code I cannot change
* the courage to change the code I can change
* and the wisdom to know the difference
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(at)gmail(dot)com>
> Date: Tue, Oct 6, 2026 at 12:23 AM
> Subject: Invalid byte sequence
> To: PostgreSQL ODBC list <pgsql-odbc(at)postgresql(dot)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++.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | M. Neumann - Prisma Computer | 2026-10-08 06:13:42 | Re: Fwd: Invalid byte sequence |
| Previous Message | Igor Korot | 2026-10-08 01:33:01 | Fwd: Invalid byte sequence |