From: Bosco Rama <postgres@boscorama.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Re: Postgresql 9.4.4 - ERROR: invalid byte sequence for encoding "UTF8": 0x92
Date: Sat, 8 Aug 2015 13:34:07 -0700
Message-ID: <55C667BF.8080703@boscorama.com> (raw)
In-Reply-To: <55C64120.6020705@nqadmin.com>
References: <55C4DF1F.2060808@nqadmin.com>
<55C584A6.1040600@nqadmin.com>
<55C64120.6020705@nqadmin.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: postgres@boscorama.com
Subject: Re: Postgresql 9.4.4 - ERROR: invalid byte sequence for encoding "UTF8": 0x92
In-Reply-To: <55C667BF.8080703@boscorama.com>
References: <55C4DF1F.2060808@nqadmin.com> <55C584A6.1040600@nqadmin.com> <55C64120.6020705@nqadmin.com> <55C667BF.8080703@boscorama.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox