diff --git a/src/libraries/System.IO.Packaging/src/System/IO/Packaging/ZipPackage.cs b/src/libraries/System.IO.Packaging/src/System/IO/Packaging/ZipPackage.cs index d5ae72393f44f..d604e8a766c4b 100644 --- a/src/libraries/System.IO.Packaging/src/System/IO/Packaging/ZipPackage.cs +++ b/src/libraries/System.IO.Packaging/src/System/IO/Packaging/ZipPackage.cs @@ -258,7 +258,7 @@ internal ZipPackage(string path, FileMode packageFileMode, FileAccess packageFil else if (packageFileAccess == FileAccess.ReadWrite) zipArchiveMode = ZipArchiveMode.Update; - zipArchive = new ZipArchive(_containerStream, zipArchiveMode, true, Text.Encoding.UTF8); + zipArchive = new ZipArchive(_containerStream, zipArchiveMode, true); _zipStreamManager = new ZipStreamManager(zipArchive, _packageFileMode, _packageFileAccess); contentTypeHelper = new ContentTypeHelper(zipArchive, _packageFileMode, _packageFileAccess, _zipStreamManager); } @@ -325,7 +325,7 @@ internal ZipPackage(Stream s, FileMode packageFileMode, FileAccess packageFileAc else if (packageFileAccess == FileAccess.ReadWrite) zipArchiveMode = ZipArchiveMode.Update; - zipArchive = new ZipArchive(s, zipArchiveMode, true, Text.Encoding.UTF8); + zipArchive = new ZipArchive(s, zipArchiveMode, true); _zipStreamManager = new ZipStreamManager(zipArchive, packageFileMode, packageFileAccess); contentTypeHelper = new ContentTypeHelper(zipArchive, packageFileMode, packageFileAccess, _zipStreamManager);