Unicode Encoding not working

Apr 22, 2015 at 3:10 PM
Hi,

I'm having problems with unicode encoding, when I name a file with a specific set of unicode characters, those characters are different in the actual extracted files.
Please find my code below.
What am I missing? Thanks
        using (var zip = new ZipFile())
        {
            zip.AlternateEncodingUsage = ZipOption.Always; 
            zip.AlternateEncoding = Encoding.UTF8;

            foreach (var filename in filenames)
            {
                zip.AddFile(filename, "");
            }
            zip.Save(zippedResultFileFullName);
        }