Hi,
I am creating a sqllite database from qt like this :
QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE", mConnectionName);
db.setDatabaseName("myDattabse.DB");
if (!db.open()) {
return false;
}
When trying to insert macedonian characters in the sqllite database, the characters are inserted as ???.
According to this link http://www.qtcentre.org/threads/26202-SQLite-connection-and-encoding?highlight=unicode+and+sqllite , I need to create my database with utf-16 encoding to solve my problem. cause sqllite default encoding is utf 8. How can I do that , where to specify this option, above in my code?