Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xEdEj-00000001CN0-2mX3 for pgsql-odbc@arkaria.postgresql.org; Thu, 08 Oct 2026 01:47:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xEdEh-0000000973T-0zhr for pgsql-odbc@arkaria.postgresql.org; Thu, 08 Oct 2026 01:47:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xEdEh-0000000973K-07J9 for pgsql-odbc@lists.postgresql.org; Thu, 08 Oct 2026 01:47:55 +0000 Received: from omta079.useast.a.cloudfilter.net ([100.28.182.33]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xEdEe-00000000ykl-0E1U for pgsql-odbc@lists.postgresql.org; Thu, 08 Oct 2026 01:47:54 +0000 Received: from eig-obgw-6001b.ext.cloudfilter.net ([10.0.30.143]) by cmsmtp with ESMTPS id ESgyxmIgqLvgbEdEcxNTqV; Thu, 08 Oct 2026 01:47:50 +0000 Received: from [192.168.11.103] ([64.52.224.6]) by cmsmtp with ESMTPSA id EdDaxZlH1AJ7UEdEaxLTyc; Thu, 08 Oct 2026 01:47:49 +0000 Authentication-Results: mhproez.com; auth=pass (PLAIN) smtp.auth=TomGoodman@mhproez.com X-Authority-Analysis: v=2.4 cv=UphjN/wB c=1 sm=1 tr=0 ts=6ac6f645 a=OwHkpP2YZ1wsrqafi+gR9w==:117 a=OwHkpP2YZ1wsrqafi+gR9w==:17 a=7j0FZ4iXMVMA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=uPZiAMpXAAAA:8 a=jfZTBj64AAAA:8 a=pGLkceISAAAA:8 a=epTmVMiNAAAA:8 a=_7IiURIXyXIpzuYarUgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=p7F5bzrKwVd0uP_lk7UA:9 a=QLGI3LRkU5naxcCn:21 a=_W_S_7VecoQA:10 a=lqcHg5cX4UMA:10 a=PHiiRVsVMcAh0rEv-6c9:22 a=tOucRg2loVdf6zVTdc0a:22 Content-Type: multipart/alternative; boundary="------------tysHWnTKUwSeCIQImDE45uaZ" Message-ID: Date: Wed, 7 Oct 2026 21:46:44 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fwd: Invalid byte sequence To: pgsql-odbc@lists.postgresql.org References: From: "TomGoodman@mhproez.com" Content-Language: en-US In-Reply-To: X-CMAE-Envelope: MS4xfCr9Y7ka2rsshTOwv+IZLX6Lj+93z11nayNW/qPuBJsqh7AW7wRykBvvJNkR1HF+UF3+8/AmSIU78Kgb5fMQEszQpy0VgSmwYnn9XskKRs3NQZ9hiG2i Q6R6AU0rPcrHWrT1D9qK0dnSb4NepNDPNKf+TyF1EK65BUtBoimndnXdA5TSk5hlhDMwdUtcBlooqSvP3E5VGgi4dEcIYCa4xs0= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------tysHWnTKUwSeCIQImDE45uaZ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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@MHProEZ.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* > Date: Tue, Oct 6, 2026 at 12:23 AM > Subject: Invalid byte sequence > To: PostgreSQL ODBC list > > > 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++. --------------tysHWnTKUwSeCIQImDE45uaZ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

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++.
--------------tysHWnTKUwSeCIQImDE45uaZ--