Get content of zip file - Character encoding

Have you tested to provide the encoding in the ZipArchive constructor instead?

...

	using (FileStream zipFileStream = File.Open(in_ZipFile, FileMode.Open)) {
		using (ZipArchive zipArchive = new ZipArchive(zipFileStream, ZipArchiveMode.Read, false, System.Text.Encoding.GetEncoding("437"))) {
				foreach (ZipArchiveEntry entry in zipArchive.Entries) {			
					fileNames.Add(entry.FullName);
			}
		}
	}

...
1 Like