Name
mysql_set_character_set()
Synopsis
int mysql_set_character_set(MYSQL *mysql, const char *char_set)
Use this function to set the default character set of a
connection to the character set given. It returns zero if successful,
and a nonzero value if not. Here is an example:
...
if (!mysql_set_character_set(mysql, 'utf8'))
{
printf("Character Set: %s", mysql_character_set_name(mysql));
}
...