maxdb_character_set_name
maxdb->character_set_name
Returns the default character set for the database connection
Description
Procedural style:
stringmaxdb_character_set_name
resourcelink
Object oriented style (method):
maxdb
string
character_set_name
Returns the current character set for the database connection specified by the
link parameter.
Return values
The default character set for the current connection, either ascii or unicode.
See also
maxdb_client_encoding.
maxdb_real_escape_string.
Example
Object oriented style
character_set_name();
printf ("Current character set is %s\n", $charset);
$maxdb->close();
?>
]]>
Procedural style
]]>
The above examples would be produce the following output: