"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> With PGCLIENTENCODING=KOI8 and server encoding UNICODE
> psql do not starts and print this message:
> psql: FATAL: invalid value for parameter "client_encoding": "KOI8"
Odd ... it Works For Me:
$ PGCLIENTENCODING=KOI8 psql regression
Welcome to psql 8.0.0beta4, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
regression=# \encoding
KOI8
regression=#
What locale settings are you using?
regards, tom lane