Sqlite3 string encoding problem
-
wrote on 29 Mar 2012, 05:00 last edited by
AA Table
a
1 192.168.1.1:8000select a from aa
qry->values(0).toString() -> 192.168.1.1? error
QString::fromUtf8(qry->values(0).toByteArray()) -> 192.168.1.1:8000 okbut i want into data to db
"insert into a values("192.168.1.1:8000")" -> save data 192.168.1.1?
tr("insert into a values("192.168.1.1:8000")").toUtf8 -> save data 192.168.1.1?How can i do save 192.168.1.1:8000
plz help me.
-
wrote on 29 Mar 2012, 07:00 last edited by
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?
-
wrote on 29 Mar 2012, 09:50 last edited by
bq. insert into a values(...
According to what you have written a is a column, aa is the table. Please post real code!
3/3