From 6674640d2d91e519021f7933d12e5f40645c6bd0 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 15 May 2017 13:13:35 +0100 Subject: [PATCH] Always open ZIP file in UTF-8. --- osrepodbmgr.Core/Workers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osrepodbmgr.Core/Workers.cs b/osrepodbmgr.Core/Workers.cs index 2413a50..67f047d 100644 --- a/osrepodbmgr.Core/Workers.cs +++ b/osrepodbmgr.Core/Workers.cs @@ -1151,7 +1151,7 @@ namespace osrepodbmgr.Core if(ZipFile.IsZipFile(Context.path)) { Context.unzipWithUnAr = true; - ZipFile zf = ZipFile.Read(Context.path); + ZipFile zf = ZipFile.Read(Context.path, new ReadOptions { Encoding = Encoding.UTF8 }); foreach(ZipEntry ze in zf) { // ZIP created with Mac OS X, need to be extracted with The UnArchiver to get correct ResourceFork structure @@ -1219,7 +1219,7 @@ namespace osrepodbmgr.Core { try { - ZipFile zf = ZipFile.Read(Context.path); + ZipFile zf = ZipFile.Read(Context.path, new ReadOptions { Encoding = Encoding.UTF8 }); zf.ExtractExistingFile = ExtractExistingFileAction.OverwriteSilently; zf.ExtractProgress += Zf_ExtractProgress; zipCounter = 0;