5

When I unpack a zip archive (with standard 'archive utility') that was created under windows, cyrillic characters in filenames become some gibberish.

Just the filenames are the problem, actual contents of files is ok.

How to fix this?

(Yosemite, if that's important. In general, I have a lot of files with cyrillic filenames — and they are displayed just fine (including on flash drives from windows users etc).)

Upd. Looks like the source of the problem (many modern zip unarchivers assume that filenames are in unicode, but that's not always the case) and a possible workaround (convmv) is described e.g. at http://blogs.gnome.org/happyaron/2010/09/03/workaround-of-file-name-problem-while-unzip-handling-cjk-encodings/

  • Do you have that font in your font book? – Ruskes Jan 1 '15 at 18:46
  • What Mac and what OS X are you using? – Ruskes Jan 1 '15 at 18:52
  • Thanks, to clarify, just the file name or also the content become gibberish? file names read by Finder, while the content is read by associated application. – Ruskes Jan 1 '15 at 18:59
  • Just the filenames, actual contents of files is ok – Grigory M Jan 1 '15 at 19:01
  • Thanks, so it is your Finder (system fonts) having the problem. – Ruskes Jan 1 '15 at 19:07
1

I wrote a Qt based utility specifically for handling and fixing double encoded filenames: https://github.com/dennis97519/EncodingConverter

0

I found this that might help you.

Assuming your decompress tool passes the raw filenames directly to the VFS layer, it's not enough for the filenames to be in UTF-8. They must also be in Normal Form D. Having the filenames in Normal Form C will end up having them mangled in the VFS layer.

0

A very simple solution is to use The Unarchiver (free on App Store) which, by default, is configured to automatically detect the filename encoding. If it does not detect the language, you can launch the program and under Preferences select the "Advanced" tab and configure the "Filename encoding" manually.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .