[
  {
    "Id": "688266",
    "ThreadId": "276948",
    "Html": "\r\n<p>I wanted a compress/decompress for silverlight so I pulled the <br>\r\nIonic.Zip Silverlight v1.9 packed Sat-08-06-2011-215945.06.</p>\r\n<p>But as soon as I do</p>\r\n<p>Dim zip1 As ZipFile = New ZipFile()</p>\r\n<p>I get and exception 'IBM437' is not a supported encoding name.</p>\r\n<p>Any ideas.</p>\r\n<p>Thanks</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2011-10-24T01:00:15.613-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "708408",
    "ThreadId": "276948",
    "Html": "<p>Did you solve this problem? &nbsp;I am trying to use DotNetZip 1.9.1.8 with Silverlight 4 and I'm running into the same exception.</p>\n<p>Specifically, my call stack is as follows:</p>\n<p>mscorlib.dll!System.Globalization.EncodingTable.internalGetCodePageFromName(string name) + 0x135 bytes</p>\n<p>mscorlib.dll!System.Globalization.EncodingTable.GetCodePageFromName(string name) + 0x69 bytes</p>\n<p>mscorlib.dll!System.Text.Encoding.GetEncoding(string name) + 0x8 bytes</p>\n<p>Ionic.Zip!Ionic.Zip.ZipInputStream._Init(System.IO.Stream stream, bool leaveOpen, string name) + 0xb5 bytes</p>\n<p>Ionic.Zip!Ionic.Zip.ZipInputStream.ZipInputStream(System.IO.Stream stream, bool leaveOpen) + 0x38 bytes</p>\n<p>Ionic.Zip!Ionic.Zip.ZipInputStream.ZipInputStream(System.IO.Stream stream) + 0x28 bytes</p>\n<p>I made sure I encoded the stream using UTF8 since I noticed some discussions suggesting that IBM437 is not supported in Silverlight. &nbsp;Same result.</p>",
    "PostedDate": "2011-12-06T13:23:59.95-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "708452",
    "ThreadId": "276948",
    "Html": "<p>Yeah, looking at the source code, line 347 of ZipInputStream.cs is calling&nbsp;System.Text.Encoding.GetEncoding(\"IBM437\"); which will throw an exception in Silverlight (see <a href=\"http://msdn.microsoft.com/en-us/library/t9a3kf7c(v=vs.95).aspx\">http://msdn.microsoft.com/en-us/library/t9a3kf7c(v=vs.95).aspx</a>).</p>\r\n<p>Can we get this fixed? &nbsp;Maybe throw an exception handler around the call and set _provisionalAlternateEncoding to something else?</p>\r\n<p>Unless I'm missing something, I can't use DotNetZip to do what I want to do in Silverlight with this error.</p>",
    "PostedDate": "2011-12-06T14:37:57.333-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "708604",
    "ThreadId": "276948",
    "Html": "<p>Well I was in a rush so used a different package.</p>\r\n<p>&nbsp;</p>\r\n<div id=\"_mcePaste\" class=\"mcePaste\" style=\"position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;\">﻿</div>\r\n<p>Imports ICSharpCode.SharpZipLib.GZip</p>\r\n<p>Code was something like :</p>\r\n<p><br />Dim inputData(message.Length) As Byte<br />inputData = UTF8Encoding.UTF8.GetBytes(message)</p>\r\n<p>Dim inputUnZipStream As GZipInputStream = New GZipInputStream(New MemoryStream(inputData))</p>\r\n<p>' Need a first pass unzip to determine how big the unzipped data is.<br />' Unzipp in chunks<br />Dim tempBuffer(1000) As Byte<br />Dim uncompressedSize As Integer = 0<br />Dim chunk As Integer = 0<br />Do<br />&nbsp;&nbsp;&nbsp; chunk = inputUnZipStream.Read(tempBuffer, 0, 1000)<br />&nbsp;&nbsp;&nbsp; uncompressedSize = uncompressedSize + chunk<br />Loop Until chunk &lt;= 0<br />inputUnZipStream.Dispose()</p>\r\n<p>'Start the unzip again but this time we know how much we will get.<br />inputUnZipStream = New GZipInputStream(New MemoryStream(inputData))<br />Dim inputXmlBuffer(uncompressedSize) As Byte<br />Dim inputXmlSize As Integer = inputUnZipStream.Read(inputXmlBuffer, 0, uncompressedSize)<br />inputUnZipStream.Dispose()</p>\r\n<p>'inputXml is the xml load string from the server<br />Dim inputXml1 As String = UTF8Encoding.UTF8.GetString(inputXmlBuffer, 0, inputXmlBuffer.Length)</p>",
    "PostedDate": "2011-12-06T23:29:24.567-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "708655",
    "ThreadId": "276948",
    "Html": "<p>There is a potential fix posted against this work item here:&nbsp;<a href=\"http://dotnetzip.codeplex.com/workitem/14049\">http://dotnetzip.codeplex.com/workitem/14049</a></p>\n<p>How do you initiate pull requests on codeplex? I would be happy to contribute with some Silverlight unit tests if they are needed.</p>",
    "PostedDate": "2011-12-07T01:26:43.4-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "709028",
    "ThreadId": "276948",
    "Html": "<p>Ah, excellent. &nbsp;The proposed solution looks good. &nbsp;I was able to test my code using a version I modified myself, and it works like a charm (in my one extremely specific test case). &nbsp;Thanks!</p>",
    "PostedDate": "2011-12-07T13:53:43.95-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]