mysqli_set_charset mysqli->set_charset Sets the default client character set &reftitle.description; Procedural style: boolmysqli_set_charset mysqlilink stringcharset Object oriented style (method): mysqli boolset_charset stringcharset Sets the default character set to be used when sending data from and to the database server. &reftitle.parameters; &mysqli.link.description; charset The charset to be set as default. &reftitle.returnvalues; &return.success; &reftitle.notes; To use this function on a Windows platform you need MySQL client library version 4.1.11 or above (for MySQL 5.0 you need 5.0.6 or above). It can be downloaded at &url.mysql.download.lib;. &reftitle.examples; Object oriented style set_charset("utf8")) { printf("Error loading character set utf8: %s\n", $mysqli->error); } else { printf("Current character set: %s\n", $mysqli->character_set_name()); } $mysqli->close(); ?> ]]> Procedural style ]]> &example.outputs; &reftitle.seealso; mysqli_character_set_name mysqli_real_escape_string