Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDomC-0004OU-3h for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Jun 2016 08:05:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bDomB-0002rm-E8 for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Jun 2016 08:05:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bDolX-00026V-ST for pgsql-bugs@postgresql.org; Fri, 17 Jun 2016 08:04:35 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDolT-00074S-BM for pgsql-bugs@postgresql.org; Fri, 17 Jun 2016 08:04:34 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u5H84Lv01471; Fri, 17 Jun 2016 01:04:21 -0700 Subject: Re: BUG #14197: ERROR: character with byte sequence 0x81 in encoding "WIN1252" has no equivalent in encoding "UTF8" To: sheri.bhavani@cognizant.com, pgsql-bugs@postgresql.org References: <20160616122249.5796.35005@wrigleys.postgresql.org> From: John R Pierce Message-ID: <04ed1adc-e84b-e048-27af-c8e84844e9b7@hogranch.com> Date: Fri, 17 Jun 2016 01:04:26 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------EFD3F1D5A9E2FAF5CD7D86D6" X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -3.1 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org This is a multi-part message in MIME format. --------------EFD3F1D5A9E2FAF5CD7D86D6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 6/16/2016 10:08 PM, sheri.bhavani@cognizant.com wrote: > ·ERROR: character with byte sequence 0x81 in encoding "WIN1252" has no > equivalent in encoding "UTF8" is thrown in postgreSQL 9.5.3 . per https://en.wikipedia.org/wiki/Windows-1252 0x81 is not a valid character in encoding win1252, so it can't be converted to UTF8 you need to determine what field of which row of what table has that value in it and change it to something valid (perhaps 0x20 ?) before you can load this data into a UTF8 database. -- john r pierce, recycling bits in santa cruz --------------EFD3F1D5A9E2FAF5CD7D86D6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 6/16/2016 10:08 PM, sheri.bhavani@cognizant.com wrote:
·         ERROR: character with byte sequence 0x81 in encoding "WIN1252" has no equivalent in encoding "UTF8" is thrown in postgreSQL 9.5.3 .

per https://en.wikipedia.org/wiki/Windows-1252  0x81 is not a valid character in encoding win1252, so it can't be converted to UTF8

you need to determine what field of which row of what table has that value in it and change it to something valid (perhaps 0x20 ?) before you can load this data into a UTF8 database.



-- 
john r pierce, recycling bits in santa cruz
--------------EFD3F1D5A9E2FAF5CD7D86D6--