Skip to content

Commit

Permalink
Fix to enable spatial bookmarks with non-ascii characters
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@8173 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Feb 21, 2008
1 parent 1542231 commit cd425df
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/qgsbookmarkitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,12 @@ QgsBookmarkItem::~QgsBookmarkItem()
mSrid << ")";

#ifdef QGISDEBUG
std::cout << "Storing bookmark using: " << sql.toLocal8Bit().data() << std::endl;
std::cout << "Storing bookmark using: " << sql.toUtf8().data() << std::endl;
#endif
rc = sqlite3_prepare(db, sql.utf8(), sql.length(), &ppStmt, &pzTail);

QByteArray sqlData = sql.toUtf8();

rc = sqlite3_prepare(db, sqlData.constData(), sqlData.size(), &ppStmt, &pzTail);
// XXX Need to free memory from the error msg if one is set
if(rc == SQLITE_OK)
{
Expand Down

0 comments on commit cd425df

Please sign in to comment.