jjzjj

UTFDataFormatException

全部标签

android - 使用 ZipInputStream 错误 UTFDataFormatException 提取文件

我在尝试提取存储在Assets文件夹中的.zip文件时遇到错误,出现错误是因为我的文件包含字符ñ。当我尝试获取下一个条目时出现错误:zipIs.getNextEntry()privatevoidloadzip(Stringfolder,InputStreaminputStream)throwsIOException{ZipInputStreamzipIs=newZipInputStream(inputStream);ZipEntryze=null;inti=0;while((ze=zipIs.getNextEntry())!=null){FileOutputStreamfout=new