feat: 导入支持UTF8编码导入
This commit is contained in:
@@ -31,7 +31,12 @@ public class FileUnZip {
|
||||
if (!pathFile.exists()) {
|
||||
pathFile.mkdirs();
|
||||
}
|
||||
ZipFile zip = new ZipFile(zipFile,"gbk");
|
||||
ZipFile zip = null;
|
||||
try {
|
||||
zip = new ZipFile(zipFile,"gbk");
|
||||
} catch (Exception e) {
|
||||
zip = new ZipFile(zipFile,"utf-8");
|
||||
}
|
||||
String orgMkdirs = "";
|
||||
int count = 0;
|
||||
for (Enumeration entries = zip.getEntries(); entries.hasMoreElements(); ) {
|
||||
|
||||
Reference in New Issue
Block a user