Andrew Dunstan <andrew@dunslane.net> writes:
> Well, it might be a good idea to provide at least some support in libpq.
> Making each client do it from scratch seems a bit inefficient.
Encoding conversion seems far outside libpq's charter, and as for
"from scratch" there are other libraries for that.
regards, tom lane