| 1 | ## Name |
| 2 | mariadb_get_charset_by_name - returns character set information for the specified character set name |
| 3 | |
| 4 | ## Synopsis |
| 5 | ```C |
| 6 | #include <mysql.h> |
| 7 | |
| 8 | MARIADB_CHARSET_INFO *mariadb_get_charset_by_name(const char *cs_name) |
| 9 | ``` |
| 10 | |
| 11 | |
| 12 | ## Description |
| 13 | Returns information about the specified character set name. |
| 14 | |
| 15 | ### Parameters |
| 16 | * `cs_name` - a character set name. |
| 17 | |
| 18 | ### Return values |
| 19 | Returns a pointer to MARIADB_CHARSET_INFO structure, or NULL if the specified character set name |
| 20 | could not be found. |
| 21 | |
| 22 | ### Notes |
| 23 | * A complete list of supported character sets in the client library is listed in the function description for [mysql_set_character_set()](mysql_set_character_set). |
| 24 | |
| 25 | ## See also |
| 26 | * [mariadb_get_charset_by_nr()](mariadb_get_charset_by_nr) |
| 27 | * [mysql_set_character_set()](mysql_set_character_set) |