File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ QString QgsGdalProvider::metadata()
367
367
myMetadata += tr ( " Dataset Description" );
368
368
myMetadata += " </p>\n " ;
369
369
myMetadata += " <p>" ;
370
- myMetadata += QFile::decodeName ( GDALGetDescription ( mGdalDataset ) );
370
+ myMetadata += FROM8 ( GDALGetDescription ( mGdalDataset ) );
371
371
myMetadata += " </p>\n " ;
372
372
373
373
Original file line number Diff line number Diff line change @@ -41,8 +41,10 @@ class QgsRasterPyramid;
41
41
42
42
#if defined(GDAL_VERSION_NUM) && GDAL_VERSION_NUM >= 1800
43
43
#define TO8F (x ) (x).toUtf8().constData()
44
+ #define FROM8 (x ) QString::fromUtf8(x)
44
45
#else
45
46
#define TO8F (x ) QFile::encodeName( x ).constData()
47
+ #define FROM8 (x ) QString::fromLocal8Bit(x)
46
48
#endif
47
49
48
50
You can’t perform that action at this time.
0 commit comments