Page 1 of 1

Unable to open RASTER grid .asc file with unicode characters in file path

Posted: Tue Jan 25, 2022 4:44 pm
by asart
Hey!

I am assuming this is both a known and low priority issue, so I thought I shouldn't open a specific issue on the GitHub tracker, but just in case I thought I should mention it.

I am using CC 2.12beta on Windows 10 21H2 with NTFS partitions.

When trying to open an ASCII Grid .asc file, using the Open dialog filter for RASTER grid, from a path containing Cyrillic characters (namely "D:\Споделена\example.asc") I get the following error: "An error occurred while loading 'example': unknown file".
Moving it to somewhere with ASCII chars only allows GDAL to read it properly.

I am also assuming this is not an issue with GDAL directly, since gdaltranslate (OSGeo4Win) seems to open the file just fine?

Maybe a hint about the error would be useful?

In any case, thank you for a truly awesome piece of software.

Re: Unable to open RASTER grid .asc file with unicode characters in file path

Posted: Thu Jan 27, 2022 12:04 pm
by daniel
Ah! I was going to say that the issue is with GDAL, but now I'm puzzled... I'm going to try something in the latest 2.12.beta version, and you'll tell me if it helped. I'll post another message when the new version is ready.

Re: Unable to open RASTER grid .asc file with unicode characters in file path

Posted: Thu Jan 27, 2022 4:23 pm
by asart
Thank you!

I will be sure to keep an eye on the thread.
Just wanted to mention OSGeo4W is using GDAL 3.3.3, so maybe the issue was fixed upstream?

Re: Unable to open RASTER grid .asc file with unicode characters in file path

Posted: Thu Jan 27, 2022 10:25 pm
by daniel
It's always interesting to see that a filename such as 'uf_box14km - éééé fdô.asc' works on my side, but not 'Споделена.asc' :D

I think I've found a solution for raster files, but also for other file types (STL, PDMS, etc.). I'll let you test the latest 2.12.beta release.

P.S.: for the records, there are some file types with a known limitations but that will be harder to fix (PCD, PLY, etc.).

Re: Unable to open RASTER grid .asc file with unicode characters in file path

Posted: Mon Feb 07, 2022 11:23 am
by asart
Just tried the new beta.
Everything works perfect on my end.

Thanks for the quick resolution!