GoLang ingres_charset

request it (442)
GoLang replacement for PHP's ingres_charset [edit | history]



Do you know a GoLang replacement for PHP's ingres_charset? Write it!

PHP ingres_charset

PHP original manual for ingres_charset [ show | php.net ]

ingres_charset

(PECL ingres >= 2.1.0)

ingres_charsetReturns the installation character set

Description

string ingres_charset ( resource $link )

ingres_charset() 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(). Changing the value of II_CHARSETxx in a running Ingres installation can cause data corruption.

Parameters

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() - Get the installation character set

<?php
$link 
ingres_connect($database$user$password);

echo 
ingres_charset($link) . "\n";

ingres_close($link);
?>

See Also