Encoding

ArchiveLoadOptions.Encoding property

Gets or sets the encoding for entries’ names.

public Encoding Encoding { get; set; }

Examples

Entry name composed using specified encoding regardless of zip file properties.

using (FileStream fs = File.OpenRead("archive.zip"))
{      
    using (Archive archive = new Archive(fs, new ArchiveLoadOptions() { Encoding = System.Text.Encoding.GetEncoding(932) }))
    {
        string name = archive.Entries[0].Name;
    }    
}

See Also