The cubrid_client_encoding function returns the charset configured in the currently connected CUBRID in string.
The cubrid_get_charset and cubrid_client_encoding functions are used interchangeably exception that an input argument can be omitted in the cubrid_client_encoding function. If the input argument is omitted, a connection identifier created most recently is handled as an input argument.
string cubrid_client_encoding ([ resource $conn_identifier ])
<?php
$con = cubrid_connect("localhost", 33000, "demodb");
if (!$con)
{
die('Could not connect.');
}
printf("CUBRID current charset: %s\n", cubrid_client_encoding($con));
?>