[
  {
    "Id": "1350000",
    "ThreadId": "579728",
    "Html": "Hi all!<br />\nI trying to zip files in Asp.net mvc application <br />\n<pre><code> public class ZipResult : ActionResult\n    {\n        public List&lt;string&gt; FilePaths { get; private set; }\n        public string Filename { get; private set; }\n\n        public ZipResult(List&lt;string&gt; path, string filename)\n        {\n            FilePaths = path;\n            Filename = filename;\n        }\n\n        public override void ExecuteResult(ControllerContext context)\n        {\n            if (context == null)\n            {\n                throw new ArgumentNullException(&quot;context&quot;);\n            }\n\n            var response = context.HttpContext.Response;\n            response.ContentType = &quot;application/gzip&quot;;\n            using (var zip = new ZipFile())\n            {\n                zip.AddFiles(FilePaths,&quot;&quot;);\n                zip.Save(response.OutputStream);\n                var cd = new ContentDisposition\n                {\n                    FileName = Filename,\n                    Inline = false\n                };\n                response.Headers.Add(&quot;Content-Disposition&quot;, cd.ToString());\n            }\n        }\n    }</code></pre>\n\nAnd after that i using <br />\n<pre><code>public ActionResult DownloadAsZip()\n        {\n//given the f_list from db..\n\nreturn new ZipResult(f_list.Select(c=&gt;Path.Combine(Server.MapPath(&quot;~/App_Data/UserFiles&quot;),c.GenFileName)).ToList(), &quot;result.zip&quot;);\n}</code></pre>\n\nThe output zip file was created successfully, but I dont see all files which I given in zip result.<br />\nPlease help me in this issue.<br />\n<br />\nThanks,<br />\nAndrew!<br />\n",
    "PostedDate": "2015-02-07T13:35:27.54-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1350007",
    "ThreadId": "579728",
    "Html": "I trying to rename extension file to rar, and I see the my other files, but name of this files include (in my directory) russian symbols, and in rar i see this symbols replaced to '???' string. I am trying to open it and got the error <br />\n<pre><code>'!   C:\\Users\\User\\Downloads\\UM Consult_02-08-2015-00_45_42.rar: Невозможно создать ???? 1_5c51062d8c9c433eb6c0b26824569afe.docx\n    Синтаксическая ошибка в имени файла, имени папки или метке тома.\n!   C:\\Users\\User\\Downloads\\UM Consult_02-08-2015-00_45_42.rar: Попытка исправить неверное имя файла\n!   C:\\Users\\User\\Downloads\\UM Consult_02-08-2015-00_45_42.rar: Переименование ???? 1_5c51062d8c9c433eb6c0b26824569afe.docx в ____ 1_5c51062d8c9c433eb6c0b26824569afe.docx\n'</code></pre>\n\n",
    "PostedDate": "2015-02-07T14:51:55.783-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1350010",
    "ThreadId": "579728",
    "Html": "Sorry guys, I found the <a href=\"http://dotnetzip.codeplex.com/workitem/13634\" rel=\"nofollow\">link</a>,\r<br />\nand add<br />\n<pre><code>zip.AlternateEncoding = System.Text.Encoding.UTF8;\nzip.AlternateEncodingUsage = ZipOption.AsNecessary;</code></pre>\n\nafter that i download file in rar format, and all is ok, in zip format the utf-8 filenames shows wrong.<br />\n",
    "PostedDate": "2015-02-07T15:10:41.563-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]