Sqlite3 string encoding problem

  • AA Table

    select a from aa

    qry->values(0).toString() -> error
    QString::fromUtf8(qry->values(0).toByteArray()) -> ok

    but i want into data to db

    "insert into a values("")" -> save data
    tr("insert into a values("")").toUtf8 -> save data

    How can i do save

    plz help me.

  • You might have syntax error at your SQL statement. Could you please explain again what kind of SQL statements do you want to execute and what problem do you have?

  • bq. insert into a values(...

    According to what you have written a is a column, aa is the table. Please post real code!

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.