CLIENT_ENCODING returns a VARCHAR value representing the character set encoding of the client system.
Syntax
CLIENT_ENCODING()
Notes
\encoding and variable
ENCODINGExamples
> SELECT CLIENT_ENCODING();
client_encoding
-----------------
UTF-8
(1 row)