"Jan Jockusch" <jan@jockusch.de> writes:
> With terminal encoding Latin-1, client encoding Latin-1
> and database encoding LATIN1, I do:
... and what database locale? This sort of misbehavior is a common
symptom of having a database encoding that's not what the locale
expects.
regards, tom lane