Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOCAt-0000kr-VE for pgsql-jdbc@arkaria.postgresql.org; Sat, 08 Aug 2015 22:01:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZOCAs-0000OU-9G for pgsql-jdbc@arkaria.postgresql.org; Sat, 08 Aug 2015 22:01:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZOCAO-0008Hf-2X for pgsql-jdbc@postgresql.org; Sat, 08 Aug 2015 22:00:36 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZOCAH-0004qn-Ax for pgsql-jdbc@postgresql.org; Sat, 08 Aug 2015 22:00: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 t78M0LH16520 for ; Sat, 8 Aug 2015 15:00:21 -0700 Subject: Re: Fwd: Re: Re: Postgresql 9.4.4 - ERROR: invalid byte sequence for encoding "UTF8": 0x92 To: pgsql-jdbc@postgresql.org References: <55C67705.209@nqadmin.com> <55C67764.1010601@nqadmin.com> From: John R Pierce Message-ID: <55C67BF0.5000308@hogranch.com> Date: Sat, 8 Aug 2015 15:00:16 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55C67764.1010601@nqadmin.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 8/8/2015 2:40 PM, Prasanth Reddy wrote: > 1. Is the content vetting new in 9.4? no, PostgreSQL has always been strict about content types. > 2. Is there an option to ask the driver not to vet the content? Some times when the users copy notes from a word document there will be some characters invalid in UTF8. Most of these should only be in > notes columns. the driver isn't doing this, its happening in the postgres database. you should fix invalid input at the source application before sending to the database. > 3. Is there a way to check the content and fix it/remove invalid characters? define 'invalid character', then fix it. this SQL_ASCII field that contains 0x92, what character code is that supposed to represent ? > 4. Is there an option to force the driver to not update database with invalid characters? the database (NOT the driver) does that already. if you try and insert invalid data, you get an error and have to rollback the transaction. -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc