mysql\_get\_character\_set\_info(3) MariaDB Connector/C mysql\_get\_character\_set\_info(3)

## [Name](#Name)

mysql\_get\_character\_set\_info - returns character set information

## [Synopsis](#Synopsis)

```
#include <mysql.h>
void mysql_get_character_set_info(MYSQL * mysql,


                                  MY_CHARSET_INFO * charset);
    
```

## [Description](#Description)

Returns information about the current default character set for the specified connection.

## [Parameters](#Parameters)

•

mysql - a connection identifier, which was previously allocated by [**mysql\_init(3)**](/man/os/mariadb-10.6/mysql_init.3) and connected by [**mysql\_real\_connect(3)**](/man/os/mariadb-10.6/mysql_real_connect.3).

•

charset - a pointer to a MY\_CHARSET\_INFO structure, in which the information will be copied.

## [Notes](#Notes)

•

A complete list of supported character sets in the client library is listed in the function description for [**mysql\_set\_character\_set(3)**](/man/os/mariadb-10.6/mysql_set_character_set.3).

## [See also](#See_also)

•

[**mariadb\_get\_infov(3)**](/man/os/mariadb-10.6/mariadb_get_infov.3)

•

[**mysql\_set\_character\_set(3)**](/man/os/mariadb-10.6/mysql_set_character_set.3)

Version 3.3.1

---

Document: mysql_get_character_set_info(3) from mariadb-10.6 10.6.12-r1 (Chainguard OS)
Source: https://github.com/MariaDB/server.git
