Search code examples
bashunicodeutf-8scriptingunzip

unzip command in Linux fails to decompress Unicode files from archive


Under Linux, I am trying to unzip a zip file which contains files with filenames using foreign characters.

When unzip tries to decompress the file it escapes the file name as ''#Uxxxx'' and then fails with mismatching "local" filename.

I am using ubuntu, unzip 6.00 and running it from the command line (I need it to be run from a script).

Any help, ideas, greatly appreciated.


Solution

  • Try this code:

    unzip -O cp936 (filename)