bash zip unicode option
<p>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.</p>

<p>zip man instructs as below.</p>

<pre><code>zip archive dir -r -UN=UTF8
</code></pre>

<p>"forces zip to store UTF-8 as native in the archive." (<a href="http://linux.die.net/man/1/zip" rel="nofollow">ZIP man</a>)</p>

<p><em>Problem</em></p>

<p>OS X bash shell:</p>

<pre><code>$ zip -r test.zip tardir -UN=UTF8
zip error: Invalid command arguments (short option 'N' not supported)
</code></pre>

<p>Using long format does not help:</p>

<pre><code>$ zip -r test.zip tardir --unicode=UTF8
zip error: Invalid command arguments (long option 'unicode' not supported)
</code></pre>