Non-ASCII filenames in zip

In my previous post, I wrote about using 'jar' on Linux to create 'zip' file.

'jar' better than 'zip' ? (INOUE Katsumi @ Tokyo)

I can do same with 'tar.gz' but when I want to send this to someone, *.zip is handier.

But there's a known problem. 'jar' will use 'UTF-8' encoding but standard 'zip' command on Windows cannot handle UTF-8 filename.
So, one needs to use p7zip or other zip utilities or 'jar'.

For the other way around, Solaris 11 and Ubuntu 'unzip' has new options to handle old encodings.
It's "-O" and "-I".

Bug #477755 “Please reinclude the patch for codepage-based zip f...” : Bugs : “unzip” package : Ubuntu

unzip package didn't support codepage-based filenames, and a patch from altlinux was included

I think the original patch was created on 2004!

#4871 – Неверная работа с кодировками названий файлов

# Set default encoding for filenames inside DOS/Windows Zip archives

 

 

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today