I have a simple extraction method in java using the java.util.zip package.
Edit: as a note, I am required to run the code in java 1.5 because it has to be run as a java stored procedure within an oracle database.
It has been working perfectly for quite some time but recently I ran into a bug when I tried to extract a zip file that contained spanish special characters in the name and a file within it that had spanish special characters.
The code fails on
ZipEntry entry = zis.getNextEntry();
Is this due to the special characters? I have verified that the zip is not corrupt and have tested on other zips with special characters in the name and have verified that it causes the same error.
Lastly, if this is the case, is there a work around for this?
I found out that org.apache.commons has a compression class and that has a bunch of different options. It allows you to specify an encoding parameter so it will accept characters from different languages now.