diff --git a/src/analysis/processing/qgsalgorithmimportphotos.cpp b/src/analysis/processing/qgsalgorithmimportphotos.cpp index 1987c6d6fb35..ee4ff54f9f77 100644 --- a/src/analysis/processing/qgsalgorithmimportphotos.cpp +++ b/src/analysis/processing/qgsalgorithmimportphotos.cpp @@ -330,7 +330,7 @@ QVariantMap QgsImportPhotosAlgorithm::processAlgorithm( const QVariantMap ¶m << fi.completeBaseName() << QDir::toNativeSeparators( fi.absolutePath() ); - gdal::dataset_unique_ptr hDS( GDALOpen( file.toLocal8Bit().constData(), GA_ReadOnly ) ); + gdal::dataset_unique_ptr hDS( GDALOpen( file.toUtf8().constData(), GA_ReadOnly ) ); if ( !hDS ) { feedback->reportError( QObject::tr( "Could not open %1" ).arg( QDir::toNativeSeparators( file ) ) );