---
name: "mysql_get_character_set_info"
section: "3"
platform: "linux"
package: "mariadb"
version: "13.0.2-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mysql_get_character_set_info"
---

# mysql\_get\_character\_set\_info(3)

### Name

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

### Synopsis

-

  ```
  #include <mysql.h>
  void mysql_get_character_set_info(MYSQL * mysql,
                                    MY_CHARSET_INFO * charset);
  ```

### Description

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

### Parameters

- •

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

- •

  `charset` - a pointer to a `MY_CHARSET_INFO` structure, in which the information will be copied.

### Notes

- •

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

### See also

- •

  **[mariadb\_get\_infov(3)](/mariadb_get_infov/3.md)**

- •

  **[mysql\_set\_character\_set(3)](/mysql_set_character_set/3.md)**
