Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZ1jC-0001zU-Di for pgsql-bugs@arkaria.postgresql.org; Fri, 16 Sep 2022 03:09:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oZ1jA-0003MX-IP for pgsql-bugs@arkaria.postgresql.org; Fri, 16 Sep 2022 03:09:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZ1jA-0003MO-Af for pgsql-bugs@lists.postgresql.org; Fri, 16 Sep 2022 03:09:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZ1j7-0002Wl-N2 for pgsql-bugs@lists.postgresql.org; Fri, 16 Sep 2022 03:09:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 28G39A0c3551125; Thu, 15 Sep 2022 23:09:10 -0400 From: Tom Lane To: Souvik Chatterjee cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17615: Getting error while inserting records in the table: invalid byte sequence for encoding "UTF8": 0xae In-reply-to: References: <17615-6d24c25ba0e8a9e6@postgresql.org> <3421821.1663270405@sss.pgh.pa.us> Comments: In-reply-to Souvik Chatterjee message dated "Fri, 16 Sep 2022 07:47:35 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3551123.1663297750.1@sss.pgh.pa.us> Date: Thu, 15 Sep 2022 23:09:10 -0400 Message-ID: <3551124.1663297750@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Souvik Chatterjee writes: > We have set the client encoding to UTF-8, but still error is coming. That is exactly what you *shouldn't* do, because the data you are sending is evidently not in UTF8. It's probably some LATINn variant. > This is getting saved properly in Oracle databases, then what's the issue > postgres? [ shrug... ] It's likely a matter of what software stack you have on the client side, not which server you're using exactly. regards, tom lane