Quantcast
Viewing all articles
Browse latest Browse all 1057

bash zip unicode option

When archiving with bash zip, I want multibyte characters are encoded in UTF-8. I want to ensure path including multibyte characters extracted correctly cross platform. Say, I have files zipped on OS X and want it to be extracted correctly on Windows.

zip man instructs as below.

zip archive dir -r -UN=UTF8

"forces zip to store UTF-8 as native in the archive." (ZIP man)

Problem

OS X bash shell:

$ zip -r test.zip tardir -UN=UTF8zip error: Invalid command arguments (short option 'N' not supported)

Using long format does not help:

$ zip -r test.zip tardir --unicode=UTF8zip error: Invalid command arguments (long option 'unicode' not supported)

Viewing all articles
Browse latest Browse all 1057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>