pg_client_encoding Gets the client encoding &reftitle.description; stringpg_client_encoding PgSql\Connectionnullconnection&null; PostgreSQL supports automatic character set conversion between server and client for certain character sets. pg_client_encoding returns the client encoding as a string. The returned string will be one of the standard PostgreSQL encoding identifiers. This function requires PostgreSQL 7.0 or higher. If libpq is compiled without multibyte encoding support, pg_client_encoding always returns SQL_ASCII. Supported encoding depends on PostgreSQL version. Refer to the PostgreSQL Documentation supported encodings. The function used to be called pg_clientencoding. &reftitle.parameters; connection &pgsql.parameter.connection-with-nullable-default; &reftitle.returnvalues; The client encoding. &reftitle.changelog; &Version; &Description; &pgsql.changelog.connection-object; 8.0.0 connection is now nullable. &reftitle.examples; <function>pg_client_encoding</function> example ]]> &example.outputs; &reftitle.seealso; pg_set_client_encoding