Arjen Nienhuis <a(dot)g(dot)nienhuis(at)gmail(dot)com> writes:
> I don't know why it does that though. Maybe it's the server_encoding. What
> does SHOW server_encoding; tell you?
He said SQL_ASCII. translate() will definitely not work nicely with
multibyte characters if it doesn't know they are multibyte :-(
regards, tom lane