"Peter Darley" <pdarley@kinesis-cem.com> writes:
> So, long and short, I think that everything should be SQL_ASCII, but even
> when it is, I get the error.
There is no way you're going to get that error if the encoding setting
is SQL_ASCII, so better look again. "SHOW server_encoding" and "SHOW
client_encoding" might be revealing.
regards, tom lane