mysql_get_c...er_set_info(3)
π mysql_get_character_set_info β returns character set information π
okay bestie, welcome to the MariaDB Connector/C section of the manual, page mysql_get_c...er_set_info(3). yes the name is long, yes it's giving "my parents named me after a wifi password", we move. π«Ά
β¨ 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 β¨
It literally just hands you the tea on the current default character set for the connection you point at. That's it, that's the whole job. No cap. π
β¨ PARAMETERS β¨
mysqlβ a connection identifier. And not just any random one, bestie: this one was previously allocated bymysql_init(3)and then connected bymysql_real_connect(3). So like, it has to be a real, live, already-connected connection. Don't be out here passing uninitiated structs, that's not the vibe. πcharsetβ a pointer to aMY_CHARSET_INFOstructure. The info gets copied into it. So you bring the container, it brings the character set lore. π¦
β¨ NOTES β¨
- The complete list of supported character sets in the client library lives in the function description for
mysql_set_character_set(3). So if you're like "wait what charsets even exist tho", that's where you go. Go look. I'll wait. π
β¨ SEE ALSO β¨
heads up: this function returns void, so there's no return value to check. Nothing to catch, nothing to handle β it just does the thing and dips. π
Version 3.4 of the MariaDB Connector/C manual, bestie β that's the whole page, mysql_get_c...er_set_info(3) and all. go forth and get that character set info, you absolute icon. πβ¨π
π¦ where this page comes from
- alpine 3.22: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.23: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb-connector-c-doc 3.4.4-2.el10 Β· LGPL-2.1-or-later
- debian trixie: libmariadb-dev 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb-connector-c-doc 3.4.5-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 43: mariadb-connector-c-doc 3.4.9-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- fedora 44: mariadb-connector-c-doc 3.4.8-3.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 44: mariadb-connector-c-doc 3.4.9-2.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- ubuntu questing: libmariadb-dev 1:11.8.3-1build1
- ubuntu resolute: libmariadb-dev 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: libmariadb-dev 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libmariadb-dev 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms