Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOAp6-0005Aa-K6 for pgsql-jdbc@arkaria.postgresql.org; Sat, 08 Aug 2015 20:34:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZOAp5-00031K-M4 for pgsql-jdbc@arkaria.postgresql.org; Sat, 08 Aug 2015 20:34:31 +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 1ZOAp4-000310-VH for pgsql-jdbc@postgresql.org; Sat, 08 Aug 2015 20:34:31 +0000 Received: from tempest.mainecoon.com ([69.12.217.123]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZOAoy-00039H-6n for pgsql-jdbc@postgresql.org; Sat, 08 Aug 2015 20:34:29 +0000 Received: from [10.1.1.2] (fw.boscorama.com [208.106.105.40]) by tempest.mainecoon.com (Postfix) with ESMTPSA id 675B81D8114F for ; Sat, 8 Aug 2015 13:34:22 -0700 (PDT) Subject: Re: Re: Postgresql 9.4.4 - ERROR: invalid byte sequence for encoding "UTF8": 0x92 To: pgsql-jdbc@postgresql.org References: <55C4DF1F.2060808@nqadmin.com> <55C584A6.1040600@nqadmin.com> <55C64120.6020705@nqadmin.com> From: Bosco Rama X-Enigmail-Draft-Status: N1110 Message-ID: <55C667BF.8080703@boscorama.com> Date: Sat, 8 Aug 2015 13:34:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55C64120.6020705@nqadmin.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) 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 08/08/15 10:49, Prasanth Reddy wrote: > [snip] > 12:42:02.505 (1) <=BE ParameterStatus(client_encoding = UTF8) [snip] > 12:42:02.506 (1) <=BE ParameterStatus(server_encoding = SQL_ASCII) There's your problem. The client is expecting UTF8 while the server is storing un-vetted SQL_ASCII. You will need to change one of the components' choice of encoding and/or enforce content conformance in the data. Another choice, in cases of known and expected non-compliance, is to use bytea casting to bypass the automated content vetting. But your choice in this case is going to be driven by the ease with which you can alter your application vs the server-side changes that would be needed. HTH, Bosco. -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc