[
  {
    "Id": "722105",
    "ThreadId": "285375",
    "Html": "\r\n<p><strong>Problem:</strong> My program collects data to store in the zip comments of the files it creates. A user pointed out an issue where if the Zip.Comment contains the &trade; symbol, the comment will not be properly saved (the zip file is fully intact).\r\n The entire multi-line comment sometimes turns into an &quot;*&quot;, I've also seen it &quot;T&quot;, or &quot;!T&quot;. I'm using v1.9.1.8, with VB.net 2010.</p>\r\n<p>&nbsp;</p>\r\n<p><strong>Reproduction:</strong> Create the zip file, and set Zip.Comment = &quot;&trade;&quot;, then Zip.Save. The comment should appear as &quot;*&quot; in the zip file.</p>\r\n<p>&nbsp;</p>\r\n<p>This is a very easy issue for me to workaround, but I thought I would make you aware. Can you tell me what other characters might cause issues with the comment, so I can apply the workaround to my program?</p>\r\n",
    "PostedDate": "2012-01-08T08:08:57.64-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "723395",
    "ThreadId": "285375",
    "Html": "<p>Check the documentation for ZipFile.Comment for information on this.</p>\r\n<p><a href=\"http://cheeso.members.winisp.net/DNZHelp/html/a5a7d21b-d410-44d4-9c95-41eaab0c499f.htm\">http://cheeso.members.winisp.net/DNZHelp/html/a5a7d21b-d410-44d4-9c95-41eaab0c499f.htm</a></p>",
    "PostedDate": "2012-01-10T15:03:19.947-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "723404",
    "ThreadId": "285375",
    "Html": "<p>Thanks for the response. I neglected to specify that I was using the following code:<br /> <br /></p>\n<pre>Using Zip As ZipFile = New ZipFile(path)\n    Zip.UseZip64WhenSaving = Zip64Option.AsNecessary\n    Zip.AlternateEncodingUsage = ZipOption.AsNecessary\n    Zip.AlternateEncoding = Encoding.Unicode\n\n    Zip.Comment = string\nEnd Using</pre>\n<p><br /> <br /> I changed Zip.AlternateEncoding = Encoding.Unicode to Zip.AlternateEncoding = Encoding.Default and the comment appeared to be saved properly. But when I attempted to then read it, using the following code:<br /> <br /> Using Zip As ZipFile = ZipFile.Read(FileName)<br /> &nbsp;&nbsp;&nbsp; Zip.AlternateEncodingUsage = ZipOption.Always<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Zip.AlternateEncoding = Encoding.Default<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string = Zip.Comment<br /> End Using</p>\n<p>&nbsp;</p>\n<p>I ended up with a strange ASCII character (instead of * or !T). Is there something else I am missing?</p>",
    "PostedDate": "2012-01-10T15:44:24.187-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "723406",
    "ThreadId": "285375",
    "Html": "<p>Hmm, I don't know. I'm trying to think of the logic path in the code.</p>\r\n<p>I think that the alternate encoding (Unicode, for example) is used if the filename or comment on any of the entries, necessitates it.&nbsp; I don't believe using regular ascii filenames and comments on all the entries, with a unicode comment on the zipfile as a whole, will result in a unicode-encoded zipfile. I think.</p>\r\n<p>I don't have the code in front of me so cannot review it just now to verify this theory.</p>\r\n<p>If I am right, then the way to enforce Unicode is to use a unicode character in the comment on a zipfile entry (ZipEntry.Comment), as well as on the zipfile itself (ZipFile.Comment).</p>\r\n<p>I'm not saying this is desirable behavior. I'm just guessing that this edge case isn't well handled, and I'm suggesting a possible workaround.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2012-01-10T15:55:47.79-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "723407",
    "ThreadId": "285375",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/workitem/14630\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2012-01-10T15:56:33.453-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]