Thanks Andreas! I like this clear answer! My colleague and I have found about this in PostgreSQL source code, but we’re not so sure. Thanks for your reply! Regards! Jasmine Liu 发件人: Andreas Joseph Krogh-2 [via PostgreSQL] [mailto:ml-node+s1045698n5816732h11@xxxxxxxxxxxxx] På onsdag 27. august 2014 kl. 10:11:09, skrev Albe Laurenz <[hidden email]>:
This is not 100% true, but is true for text-fields. You can insert \0 into BYTEA columns. Usually the \0 isn't important so you can do this in JAVA before inserting into PG: someString.replace('\0', ' ') or someString.replaceAll("\0", "") If you reply to this email, your message will be added to the discussion below: To unsubscribe from invalid byte sequence for encoding "UTF8": 0x00, click here. |