[gdal-dev] Issue opening RAR archive with non-latin filenames

Denis Rykov rykovd at gmail.com
Wed Aug 20 13:11:07 PDT 2025


Hello,

I’m having trouble opening a RAR archive containing files with non-Latin
characters using GDAL:
$ docker run --rm -v `pwd`/arch.rar:/arch.rar:ro -e CPL_DEBUG=ON
ghcr.io/osgeo/gdal:ubuntu-full-3.11.3 gdalinfo "/vsirar/arch.rar"
VSIARCH: Opening arch.rar
VSIARCH: Pathname cannot be converted from UTF-16BE to current locale.
VSIARCH: Opening arch.rar
VSIARCH: Pathname cannot be converted from UTF-16BE to current locale.
ERROR 4: `/vsirar/arch.rar' does not exist in the file system, and is not
recognized as a supported dataset name.
gdalinfo failed - unable to open '/vsirar/arch.rar'.

It seems the issue is related to the non-Latin filenames in the archive.
Using unrar, I can extract the files and list them without any problem.
Is there any workaround to make GDAL handle such RAR archives correctly?

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250820/d4ac4026/attachment.htm>


More information about the gdal-dev mailing list