You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Add a new libpq connection option client_encoding (which includes theexisting PGCLIENTENCODING environment variable), which besides anencoding name accepts a special value "auto" that tries to determinethe encoding from the locale in the client's environment, using themechanisms that have been in use in initdb.psql sets this new connection option to "auto" when running from aterminal and not overridden by setting PGCLIENTENCODING.original code by Heikki Linnakangas, with subsequent contributions byJaime Casanova, Peter Eisentraut, Stephen Frost, Ibrar Ahmed