CLIENT_ENCODING returns a VARCHAR value representing the character set encoding of the client system.
Syntax
CLIENT_ENCODING()
Notes
The current client character set encoding.
Specifies the client character set encoding. With no argument, this command shows the current encoding.
Examples
> SELECT CLIENT_ENCODING();
client_encoding
-----------------
UTF-8
(1 row)