Ubuntu – Cannot read filenames that are in utf8 encoding (Greek characters)

12.10encodingfilename

I've downloaded some files using "Download as .zip" option provided by Dropbox.
The filenames contain Greek characters.
I've extracted them and all I get is this: 2013 ΧειμεÏινÏ.pdf
The files were probably named/created on Windows OS, with greek locale.

I've looked into it and installed convmv utility but when using this command:
1st attempt:
convmv -t utf8 ./2013 ΧειμεÏινÏ.pdf, I got this output:

Your Perl version has fleas #37757 #49830
Starting a dry run without
changes…
Skipping, already UTF-8: ./2013 ΧειμεÏινÏ.pdf
No changes to your files done. Use –notest to finally rename the files.

So, the filenames are already in utf8 but arent't properly displayed.
2nd attempt:
Searched for greek encodings and found these two ISO 8859-7 and windows-1253.
Tried with the 1st one and got that iso-8859-7 doesn't cover all needed characters for: "./2013 ΧειμεÏινÏ.pdf".
So no luck with this as well.

I then used convmv --list and windows-1253 didn't appear.

So I am out of ideas, is there something I can do to fix this?

Best Answer

  • This happens because default Ubuntu archive manager file-roller uses p7zip to unzip zip archives, if p7zip-full is installed. P7zip-full does not treat non-English file names correctly.

    I made a PPA with file-roller using unzip program instead of p7zip. Patched file-roller can be installed by

    sudo add-apt-repository ppa:hanipouspilot/file-roller
    sudo apt-get update
    sudo apt-get install file-roller