mysql_character_set_name — returns the name of the current client character set
const char * mysql_character_set_name(MYSQL * mysql);
Returns the name of the current client character set for the specified connection.
mysql
A mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
mysql_init()
mysql_real_connect()
The default client character set for the specified connection