Quoth MySQL docs - mysql_set_character_set()
:
This function works like the SET NAMES statement, but also sets the value of mysql->charset, and thus affects the character set used by
mysql_real_escape_string()
When it says "works like the SET NAMES
statement", does it mean that the actual MySQL query SET NAMES
will be issued to the server?
Or does it mean that the functionality of mysql_set_character_set
mimics the query SET NAMES
but no actual messages or data will be sent from the web server to the database server?