pg_client_encoding()
pg_client_encoding - Gets the client encoding
Syntax
string pg_client_encoding (
resource $connection)
Arguments
- connection - PostgreSQL database connection resource. When connection is not present, the default connection is used. The default connection is the last connection made by pg_connect() or pg_pconnect().
Description
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.
Version
PHP 4.0.3, 5
Return value
The client encoding, or FALSE on error.