[
  {
    "Id": "500828",
    "ThreadId": "229239",
    "Html": "<p>Hi,</p>\r\n<p>I'm trying to archive a ZIP file using your great DotNetZip library (v. 1.9).The command I use is the following one:</p>\r\n<p><em>zip.AddEntry(String.Format(@&quot;data\\{0}&quot;,ab.FileName), ab.RawText, Encoding.GetEncoding(ab.CharacterSet));</em></p>\r\n<p>As you can see, I set the encoding for the content of the entry.</p>\r\n<p>The name of the entry is the string:</p>\r\n<p><em>&quot;0135 290910   Dire  GOVERNO  MARINO  BIOETICA NON <strong>&Egrave;</strong> DI STATO, COSTITUZIONE <strong>&Egrave;</strong> LA GUIDA (trasmessa alle ore 1401).xml&quot;</em></p>\r\n<p>While in the final zip file I find this string:</p>\r\n<p><em>&quot;0135 290910   Dire  GOVERNO  MARINO  BIOETICA NON <strong>E</strong> DI STATO, COSTITUZIONE <strong>E</strong> LA GUIDA (trasmessa alle ore 1401).xml&quot;</em></p>\r\n<p>(I hope the HTML will not transform the example strings I wrote)</p>\r\n<p>The strings are not the same and the character &quot;  E' &quot; is translated to &quot; E  &quot; (without quote).</p>\r\n<p>I think is related to the encoding of the Filename. I set the encoding for the content of the entry to ISO-88591 but no the encoding for the name of the entry. Is it possibile to do this?</p>\r\n<p>Do you have any idea on what could be the cause of this entry's name translation?</p>\r\n<p>Thanks a lot</p>\r\n<p>Roberto</p>",
    "PostedDate": "2010-09-30T22:28:28.15-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "500857",
    "ThreadId": "229239",
    "Html": "<p>Maybe I have found the solution....very easy:</p>\r\n<p>&nbsp;</p>\r\n<p><strong>ZipFile zip = new ZipFile(Encoding.UTF8)&nbsp;</strong></p>\r\n<p>&nbsp;</p>\r\n<p>But I need your opinion beacuse I have to be sure that the entry name and comments will be in UTF8 while the content of the Entry will be in ISO-88591. Infact I use:</p>\r\n<p>&nbsp;</p>\r\n<p><strong>zip.AddEntry(String.Format(@&quot;data\\{0}&quot;,ab.FileName), ab.RawText, Encoding.GetEncoding(ab.CharacterSet));&nbsp;</strong></p>\r\n<p>&nbsp;</p>\r\n<p>Where ab.CharSet is <strong>ISO-88591.</strong></p>\r\n<p>&nbsp;</p>\r\n<p>Regards</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-10-01T00:34:25.34-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "502452",
    "ThreadId": "229239",
    "Html": "Yes, that is correct. <br><br>\r\n\r\nIn the zip file format,\r\nThe encoding of the filename is distinct and independent of the encoding of any file contents. By default the filenames and comments are encoded with IBM-437.  The encoding of any entry content can be anything you specify. <br><br>\r\n\r\nBy specifying UTF-8 for the encoding of the entry names and comments, you have a zipfile that can store an entry that has a filename with an (e with a grave accent) character. Be aware that not all applications and tools can read zipfiles that use UTF-8 encoding. See the documentation for more details.\r\n<br><br>\r\n\r\nBuon lavoro.\r\n",
    "PostedDate": "2010-10-05T05:54:52.443-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]