mysql_character_set_name

mysql_character_set_name returns the name of the default client character set for a specified MariaDB Connector/C connection.

Syntax

const char * mysql_character_set_name(MYSQL * mysql);

Parameter

Description

Returns the default client character set for the specified connection.

Return value

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.

See Also

spinner

Last updated

Was this helpful?