Re: Unable to store SHA hash (Non-HTML--Sorry)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jerry Reid" <jereid(at)hotmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Unable to store SHA hash (Non-HTML--Sorry)
Date: 2001-05-03 05:30:56
Message-ID: 22924.988867856@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

"Jerry Reid" <jereid(at)hotmail(dot)com> writes:
> This string contains several characters that are outside the normal ASCII
> range. The string could be stored and retrieved using Oracle and MySQL, but
> in Postgres any unusual characters become '?'.

Postgres will happily store anything except a null ('\0') in a text
field. I suspect that either

(a) you have set up the database with some multibyte encoding method
activated, and your funny characters are confusing the multibyte
conversions; or

(b) the mistranslation is happening on the JDBC side.

You might try enabling query logging to see exactly what command is
arriving at the backend when you try to insert this data. That should
determine whether the client or server side is at fault.

regards, tom lane

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Rolf Schillinger 2001-05-03 09:35:23 JDBC driver in pgsql 7.1 build problem
Previous Message Jerry Reid 2001-05-03 05:17:32 Unable to store SHA hash (Non-HTML--Sorry)