Bug report for ZipForm.cs in the "Win Forms App" project

May 11, 2012 at 12:46 PM
Edited May 11, 2012 at 1:09 PM

File Path: DotNetZip\Tools\WinFormsApp\ZipForm.cs

 

Below Line 1280, should add the following code:

 

 

var readOptions = new ReadOptions
{
    Encoding = (comboEncoding.SelectedIndex > 0)
        ? System.Text.Encoding.GetEncoding(comboEncoding.SelectedItem.ToString())
        : System.Text.Encoding.GetEncoding("IBM437")
};

 

And change the following line:

 

using (var zip = ZipFile.Read(_DisplayedZip))

 

into this:

 

using (var zip = ZipFile.Read(_DisplayedZip, readOptions))

 

This should solve the extract UTF-8 encoded ZIP file problem when assigning other encoding in the UI.

Coordinator
May 18, 2012 at 11:24 PM

Can you file an actual bug report on the issue tracker? When making that report, also describe the "extract UTF-8 encoded zip file problem" in detail. Exactly what is the problem.  Appending a test case to the issue tracker item would be ideal.