I have a problem when I try to unzip file contains files with special characters.
Lets say I have a zip file gallery.zip with image files.
gallery.zip
- file01.jpg
- dařbuján.jpg
My method starts:
public List<File> unzipToTemporaryFolder(ZipInputStream inputStream)
throws IOException {
List<File> files = new LinkedList<File>();
ZipEntry entry = null;
int count;
byte[] buffer = new byte[BUFFER];
while ((entry = inputStream.getNextEntry()) != null) {
It fails in inputStream.getNextEntry() when I try to read file dařbuján.jpg because of czech letters "ř" and "á". It works well with the other files for example with spaces (104 25.jpg or simply file.jpg etc.). Can you help me please?