Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support UTF8 file name #37

Open
GoogleCodeExporter opened this issue Nov 27, 2015 · 3 comments
Open

Support UTF8 file name #37

GoogleCodeExporter opened this issue Nov 27, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 30 Sep 2011 at 6:45

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 30 Sep 2011 at 3:49

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 26 Sep 2014 at 10:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant