Christian Fowler <spider(at)viovio(dot)com> writes:
> [shell]$ env
> PGCLIENTENCODING=UNICODE
> LANG=en_US.UTF-8
> db=# \encoding
> UNICODE
I was more concerned about the database encoding, which the above
doesn't prove. Try "SHOW server_encoding"
regards, tom lane