Important: Please read the Qt Code of Conduct -

QSqlField to UTF-8

  • Hi, I'm doing queries that return strings with characters like Ñ, é, á, etc; but instead of that characters, I got another symbols that looks like trash at my interface.

    With Qt4.8 I fixed with this lines:


    But with Qt 5, setCodecForCStrings it's deprecated. So, what can I do?


Log in to reply