Index: Exif/Database.cpp
===================================================================
--- Exif/Database.cpp	(revision 643608)
+++ Exif/Database.cpp	(working copy)
@@ -129,7 +129,7 @@
         return;
 
     QSqlQuery query( QString::fromLatin1( "DELETE FROM exif WHERE fileName=?" ), _db );
-    query.bindValue( 0, fileName );
+    query.bindValue( 0, fileName.utf8() );
     if ( !query.exec() )
         showError( query );
 }
@@ -146,7 +146,7 @@
     }
 
     QSqlQuery query( QString::fromLatin1( "INSERT into exif values (?, %1) " ).arg( formalList.join( QString::fromLatin1( ", " ) ) ), _db );
-    query.bindValue(  0, filename );
+    query.bindValue(  0, filename.utf8() );
     int i = 1;
     for( QValueList<DatabaseElement*>::Iterator tagIt = elms.begin(); tagIt != elms.end(); ++tagIt ) {
         (*tagIt)->bindValues( &query, i, data );
