From: | Prasanth Reddy <dbadmin(at)nqadmin(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org, Bosco Rama <postgres(at)boscorama(dot)com> |
Subject: | Fwd: Re: Re: Postgresql 9.4.4 - ERROR: invalid byte sequence for encoding "UTF8": 0x92 |
Date: | 2015-08-08 21:40:52 |
Message-ID: | 55C67764.1010601@nqadmin.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
-------- Forwarded Message --------
Subject: Re: Re: Postgresql 9.4.4 - ERROR: invalid byte sequence for encoding "UTF8": 0x92
Date: Sat, 08 Aug 2015 16:39:17 -0500
From: Prasanth Reddy <dbadmin(at)nqadmin(dot)com>
Reply-To: dbadmin(at)nqadmin(dot)com
To: Bosco Rama <postgres(at)boscorama(dot)com>
1. Is the content vetting new in 9.4?
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.
3. Is there a way to check the content and fix it/remove invalid characters?
4. Is there an option to force the driver to not update database with invalid characters?
Appreciate your help.
Thanks,
Prasanth
------------------Original Message--------------------------
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.
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2015-08-08 22:00:16 | Re: Fwd: Re: Re: Postgresql 9.4.4 - ERROR: invalid byte sequence for encoding "UTF8": 0x92 |
Previous Message | Vladimir Sitnikov | 2015-08-08 21:27:22 | Re: Re: Postgresql 9.4.4 - ERROR: invalid byte sequence for encoding "UTF8": 0x92 |