View Single Post

   
  #3 (permalink)  
Old 04-16-2008, 12:36 AM
Oliver Jowett
 
Posts: n/a
Default Re: invalid byte sequence for encoding "UTF8": 0x00

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

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Reply With Quote