title: Encoding of files inside a zip (C# / ionic-zip)
body: <p>We got a problem with the encoding of files inside a zip-file.
  We are using the ionic zip to compress and decompress archives. 
  We are a located in Denmark, so we often have files containing æ, ø or å in the file-names.</p>
  
  <p>When a user uses windows built-in tool to compress files, then I found that it was using the IBM437 enconding, this just gave some funky results when we had files with 'ø' / 'Ø' in them. This I fixed with the following code:</p>
  
  <pre><code>public static string IBM437Encode(this string text)
  {
      return text.Replace('ø', '¢').Replace('Ø', '¥');
  }
  public static string IBM437Decode(this string text)
  {
      return text.Replace('¢', 'ø').Replace('¥', 'Ø');
  }
  </code></pre>
  
  <p>This has been running for some time now, and all has been fine.</p>
  
  <p>But, because theres always a but, we didn't try it with a file compressed with the default tool in mac osx. 
  So now we got a new problem..
  When using æ, ø and å the encoding is UTF-8!
  <strong>So I can get it to work if I know where the zip has been compressed, but is there any easy way to detect or normalize the encoding inside a zip?</strong> </p>