julioamorim / winzipaes

Automatically exported from code.google.com/p/winzipaes
0 stars 0 forks source link

Support UTF8 file name #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I wonder if the standard zip file entry support UTF-8 file name.

when i test with TestAesZipFileEncrypter.testVariousFileTypesWithStream() by 
changing the original english name to a utf-8 name, the created zip file won't 
contain the entry. 

the code ExtZipOutputStream.putNextEntry, the code is written as 
writeBytes(entry.getName().getBytes("iso-8859-1")); that seems to have assumed 
the file name is in iso-8859-1. 

Original issue reported on code.google.com by mingfai...@gmail.com on 30 Sep 2011 at 6:45

GoogleCodeExporter commented 9 years ago
from the info i found on the web, i believe utf8 file name is doable by setting 
the General Purpose Bit Flag, bit 11 (Language encoding flag (EFS)), and 
http://www.pkware.com/documents/casestudies/APPNOTE.TXT
http://stackoverflow.com/questions/106367/add-non-ascii-file-names-to-zip-in-jav
a

going to try it later when i have time. thx

Original comment by mingfai...@gmail.com on 30 Sep 2011 at 3:49

GoogleCodeExporter commented 9 years ago

Original comment by olaf.merkert on 8 Dec 2011 at 5:17

GoogleCodeExporter commented 9 years ago
hello friends,
 I need passwordcompressor.jar for zip and unzip folder with password. So I refer "http://code.google.com/p/winzipaes/" link but I unable to download passwordcompressor.jar ....please suggest me any solution..
                                    Thank you

Original comment by abhi.nau...@gmail.com on 26 Sep 2014 at 10:20