diff --git a/Modules/IO/IOGDAL/src/otbGDALDriverManagerWrapper.cxx b/Modules/IO/IOGDAL/src/otbGDALDriverManagerWrapper.cxx index 6eb7a346fda5c32d6b19ca3f0f1c63800a113ec0..ff29de09c320d694e633d05834e1e2ad78edd8db 100644 --- a/Modules/IO/IOGDAL/src/otbGDALDriverManagerWrapper.cxx +++ b/Modules/IO/IOGDAL/src/otbGDALDriverManagerWrapper.cxx @@ -53,6 +53,10 @@ GDALDriverManagerWrapper::~GDALDriverManagerWrapper() GDALDatasetWrapper::Pointer GDALDriverManagerWrapper::Open( std::string filename ) const { + // This GDAL config option is there to handle UTF-8 filenames on Windows + // It fixes mantis bug 1318 where images with filenames like ä½ å¥½.tif could not be read on Windows + CPLSetConfigOption("GDAL_FILENAME_IS_UTF8","NO"); + GDALDatasetWrapper::Pointer datasetWrapper; if (boost::algorithm::starts_with(filename, "http://")