Skip to content
Permalink
Browse files

Fix to enable spatial bookmarks with non-ascii characters

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8173 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Feb 21, 2008
1 parent 4b9aa12 commit e0e248c2367f6b85814c251afc435a204d06630a
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/app/qgsbookmarkitem.cpp
@@ -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)
{

0 comments on commit e0e248c

Please sign in to comment.
You can’t perform that action at this time.