INGRES_CHARSET(3) 1 INGRES_CHARSET(3)
ingres_charset - Returns the installation character set
SYNOPSIS
string ingres_charset (resource $link)
DESCRIPTION
ingres_charset(3) is called to determine the character set being used by the Ingres client, from II_CHARSETxx (where xx is the installation
code).
Note
You can override the value returned by using the function putenv(3). Changing the value of II_CHARSETxx in a running Ingres instal-
lation can cause data corruption.
PARAMETERS
o $link
- The connection link identifier
RETURN VALUES
Returns a string with the value for II_CHARSETxx or returns NULL if the value could not be determined.
EXAMPLES
Example #1
ingres_charset(3) - Get the installation character set
<?php
$link = ingres_connect($database, $user, $password);
echo ingres_charset($link) . "
";
ingres_close($link);
?>
SEE ALSO
ingres_connect(3), ingres_query(3).
PHP Documentation Group INGRES_CHARSET(3)