> Whatever you do, please do not set any environment variables from within
> programs. It's evil.
Of course it's in my plan. I will eliminate them.
> > (3) Add a new function PQclientencoding() to extract client_encoding
> > from PGconn.
>
> How about PQencoding()?
Humm... someday we may have PQdatabasencoding(). So I think it's
better to have "client" on it not to be confused.
> How about PQmblen(character, encoding)? Then you could call it PQmblen(c,
> PQclientencoding(conn)) or PQmblen(c, other_encoding). That makes it more
> general.
Good idea. Agreed.
--
Tatsuo Ishii