[Interest] (no subject)

David Villalobos Cambronero david.villalobos.c at gmail.com
Tue Jul 28 15:51:46 CEST 2020


Hi all,

In my program I have this line:

QString queryToExecute("SELECT 'Día'");
mysql_real_query(dbConnection, queryToExecute.toUtf8().data(),
queryToExecute.toUtf8().length());

And it works just fine on Linux and Linux, but in Windows the í char is not
sent the correct way, I mean, the Database Server does not receive and í.

I have tried the QTextCodec class but it does not work.

¿Any other idea?

Best regards
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200728/60b80829/attachment.html>


More information about the Interest mailing list