|
mysqli::set_charsetmysqli_set_charsetSets the default client character set DescriptionObject oriented style
bool mysqli::set_charset
( string
$charset
)Procedural style
bool mysqli_set_charset
( mysqli
$link
, string $charset
)Sets the default character set to be used when sending data from and to the database server. Parameters
Return Values
Returns Notes
ExamplesExample #1 mysqli::set_charset example Object oriented style
<?php Procedural style
<?php The above examples will output something similar to: Initial character set: latin1 Current character set: utf8 See Also
|