mysql_character_set_name - mariadb-corporation/mariadb-connector-c GitHub Wiki
mysql_character_set_name - Returns the character set used for the specified connection
#include <mysql.h>
const char* mysql_character_set_name(MYSQL * mysql);
Returns the character set used for the specified connection.
-
mysql
is a connection identifier, which was previously allocated by mysql_init() and connected by mysql_real_connect().
The character set name used for the specified connection, or NULL if an error occurred.
This function is deprecated. Instead, use mariadb_get_infov() with option MARIADB_CONNECTION_CHARSET_INFO
.