pg_client_encoding 获取客户端编码 &reftitle.description; stringpg_client_encoding PgSql\Connectionnullconnection&null; PostgreSQL 支持某些字符集在服务器和客户端之间自动进行字符集转换。pg_client_encoding 以字符串形式返回客户端编码。返回的字符串将是标准的 PostgreSQL 编码标识符之一。 此函数需要 PostgreSQL 7.0 或更高版本。如果 libpq 在没有多字节编码支持的情况下编译,pg_client_encoding 总是返回 SQL_ASCII。支持的编码取决于 PostgreSQL 版本。请参阅 PostgreSQL 文档支持的编码。 此函数过去称为 pg_clientencoding &reftitle.parameters; connection &pgsql.parameter.connection-with-nullable-default; &reftitle.returnvalues; 客户端编码。 &reftitle.changelog; &Version; &Description; &pgsql.changelog.connection-object; 8.0.0 connection 现在可以为 null。 &reftitle.examples; <function>pg_client_encoding</function> 示例 ]]> &example.outputs; &reftitle.seealso; pg_set_client_encoding