mysqli_character_set_name
mysqli->character_set_name
Returns the default character set for the database connection
Description
Procedural style:
stringmysqli_character_set_name
mysqlilink
Object oriented style (method):
mysqli
stringcharacter_set_name
Returns the current character set for the database connection specified by the
link parameter.
&reftitle.returnvalues;
The default character set for the current connection
&reftitle.seealso;
mysqli_client_encoding&listendand;
mysqli_real_escape_string.
&reftitle.examples;
Object oriented style
character_set_name();
printf ("Current character set is %s\n", $charset);
$mysqli->close();
?>
]]>
Procedural style
]]>
&example.outputs;