cubrid_client_encoding

Description

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.

Syntax

string cubrid_client_encoding ([ resource $conn_identifier ])

Return Value
Example

<?php

    $con = cubrid_connect("localhost", 33000, "demodb");

    if (!$con)

    {

        die('Could not connect.');

    }

 

    printf("CUBRID current charset: %s\n", cubrid_client_encoding($con));

?>

See Also