Switch to: V11V10V9V8V7V6V5



string valentina_client_encoding ( [resource link_identifier] )


Name Description
link_identifier The Valentina Server connection. If the link identifier is not specified, the last link opened by valentina_connect() is assumed. If by chance no connection is found, an E_WARNING level warning is generated.


Always returns string containing UTF-8 as far as Valentina for PHP works with this encoding.

Return Values

Returns the default character set name for the current connection.


Example 1.

$link    = valentina_connect('localhost', val_user', val_password');
$charset = valentina_client_encoding($link);
echo "The current character set is: $charset\n";

The above example will output something similar to:

The current character set is: UTF-8

See Also