Configuring C connector to accept ASCII characters to insert in an UTF8 database

Hi, When trying to do such thing ( insert an ê (0XEA ascii value), I got following error :

.... Arrêt du serveur de production')' (1366:Incorrect string value: '\xEAt .....

My database character-set is utf8 :

+--------------------------+-----------------+

Variable_nameValue

+--------------------------+-----------------+

character_set_clientutf8
character_set_connectionutf8
character_set_databaseutf8
character_set_filesystembinary
character_set_resultsutf8
character_set_serverutf8
character_set_systemutf8
collation_connectionutf8_general_ci
collation_databaseutf8_general_ci
collation_serverutf8_general_ci

+--------------------------+-----------------+

How may I achieve this insertion by using a mariadb C connector?

By using a mysqlclient , it works.

Any help is welcome. Thx

J.P.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.