antony baxter wrote:
> One thing I forgot to add; I also tried e.g.:
>
> ps.setString(1, new
> String(Charset.forName("UTF-8").encode(myString).array(), "UTF-8"));
>
That should just be a no-op in encoding terms. Could the ByteBuffer
returned by encode(...) contain trailing NULL values that CharsetDecoder
retains in the decoded string?
Are the lengths of `myString' and the converted string the same?
If you print them out character by character what're the character values?
--
Craig Ringer
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc