Force utf-8 data when adding feed.

This commit is contained in:
martinrotter 2017-04-26 09:07:23 +02:00
parent ac3c57cd4d
commit a8213dd58a
1 changed files with 2 additions and 2 deletions

View File

@ -1199,8 +1199,8 @@ int DatabaseQueries::addFeed(QSqlDatabase db, int parent_id, int account_id, con
q.prepare("INSERT INTO Feeds "
"(title, description, date_created, icon, category, encoding, url, protected, username, password, update_type, update_interval, type, account_id) "
"VALUES (:title, :description, :date_created, :icon, :category, :encoding, :url, :protected, :username, :password, :update_type, :update_interval, :type, :account_id);");
q.bindValue(QSL(":title"), title);
q.bindValue(QSL(":description"), description);
q.bindValue(QSL(":title"), title.toUtf8());
q.bindValue(QSL(":description"), description.toUtf8());
q.bindValue(QSL(":date_created"), creation_date.toMSecsSinceEpoch());
q.bindValue(QSL(":icon"), qApp->icons()->toByteArray(icon));
q.bindValue(QSL(":category"), parent_id);