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

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
asart
Posts: 11
Joined: Mon Aug 23, 2021 2:24 pm

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

Post 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.
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post 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.
Daniel, CloudCompare admin
asart
Posts: 11
Joined: Mon Aug 23, 2021 2:24 pm

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

Post 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?
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post 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.).
Daniel, CloudCompare admin
asart
Posts: 11
Joined: Mon Aug 23, 2021 2:24 pm

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

Post by asart »

Just tried the new beta.
Everything works perfect on my end.

Thanks for the quick resolution!
Post Reply