Re: invalid byte sequence for encoding "UTF8": 0x00 - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: invalid byte sequence for encoding "UTF8": 0x00
Date
Msg-id 45DAE076.1060407@opencloud.com
Whole thread Raw
In response to invalid byte sequence for encoding "UTF8": 0x00  ("James Im" <im-james@hotmail.com>)
Responses Re: invalid byte sequence for encoding "UTF8": 0x00
List pgsql-jdbc
James Im wrote:

> I've got another problem. I sometimes get the following SQLException
> when doing an insert:
>
> ERROR: invalid byte sequence for encoding "UTF8": 0x00

You're trying to insert a string which contains a '\0' character. The
server can't handle strings containing embedded NULs, as it uses C-style
string termination internally.

-O

pgsql-jdbc by date:

Previous
From: Altaf Malik
Date:
Subject: Re: invalid byte sequence for encoding "UTF8": 0x00
Next
From: Csaba Nagy
Date:
Subject: Re: invalid byte sequence for encoding "UTF8": 0x00