Skip to content

mysql_character_set_name

Georg Richter edited this page May 30, 2023 · 2 revisions

Name

mysql_character_set_name - Returns the character set used for the specified connection

Synopsis

#include <mysql.h>

const char* mysql_character_set_name(MYSQL * mysql);

Description

Returns the character set used for the specified connection.

Parameters

Return value

The character set name used for the specified connection, or NULL if an error occurred.

Notes

This function is deprecated. Instead, use mariadb_get_infov() with option MARIADB_CONNECTION_CHARSET_INFO.

See also

Clone this wiki locally