Charset problem with C/C++ connector

What charset should I use with C/C++ connector ? For example if I send an UTF8 string in mysql_stmt_bind_param the string is re-encoded again in UTF8 (double utf8 encoding). Can I specify that my string is already encoded in UTF8 ? Or what charset should I use in all mysql_stmt functions ? Thanks for your help Regards.

Answer Answered by Didier Blockelet in this comment.

I found the solution: by default the connexion is 'latin1', in my case I have to change this with: set character_set_connection='utf8mb4' set character_set_client='utf8mb4' Everythings fine now :-)

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.