pg_set_client_encoding

Supported Versions: PHP 4 >= 4.0.3, PHP 5, PHP 7, PHP 8
Set the client encoding
<?php pg_set_client_encoding(PgSql\Connection $connection = ?, string $encoding): int