Jan Ploski <jpljpl(at)gmx(dot)de> writes:
> Is there some other way to find out what PGCLIENTENCODING is used
> in each case?
I think "show client_encoding" and "show server_encoding" would tell
what you want (not sure how well JDBC cooperates with the SHOW command
though).
regards, tom lane