PG CLIENT ENCODING Function

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PostgreSQL PG_CLIENT_ENCODING() function

PG_CLIENT_ENCODING() function

The PostgreSQL pg_client_encoding function is used to get the current client encoding name.

Syntax :

pg_client_encoding (string)

PostgreSQL Version : 9.3

Pictorial Presentation of PostgreSQL PG_CLIENT_ENCODING() function

 

Example : PostgreSQL PG_CLIENT_ENCODING() function :

The example below returns the current client encoding name.

SELECT pg_client_encoding();

Output :

pg_client_encoding
--------------------
 WIN1252
(1 row)