Skip to content

Instantly share code, notes, and snippets.

Created October 19, 2016 13:44
Show Gist options
  • Save anonymous/41fa9fb30365edee081282d64eb29039 to your computer and use it in GitHub Desktop.
Save anonymous/41fa9fb30365edee081282d64eb29039 to your computer and use it in GitHub Desktop.
PKàSI7b╤mû╗ instructionsmÆ┴n█0 å∩·▄⌐@╨&÷£á═n├Ç┤╜φ░-╙╢Y$z^÷⌠ú¼+░╛Φ╖° )╛ÉsⁿΘ÷µ÷µ╟hΦ'#ü├$0
p┐
fDτ╚┤àk┼▓¬I($hI╧█l⌡6¢g╕≥ßäåZµ ╠ëó╟ë6╜sΓ⌠ ºαΦª+ä╚╜uöú╧úHH_v╗eY╢²▀Ω¡ßi≈ì"DG⌐:Cb¡{3-à∩ ö╧σkΣ;░┬p╛\φO
φl]ùdε√ç≤D▌zo╛z7┘√╙¿╬8<Uuc¬╢┴ª⌐╗²íφƒÄç║«÷d║πXW▌c▀≈j»╨┘╬▀ $╝┬2Z3║üúòq╩╨sR╟v^'¬í╙£41½σr ∞ 0ü⌡Yz├(C╪g╨oæP₧m0∞¡╖~(Å4jk»S╩,èPT,╣e╠r£E╥ÿ¿╟╗an¥5YNd"II=Σ╘∩£ñ∞Æ⌡.i!ôórLy.╪┌±`=║K8╖Z65lÿ;p│╣Φ╩■PK?àSI7b╤mû╗ $ instructions
╓^⌠k*╥»7⌠k*╥ìÄ╘k*╥PK^└
@igerasymchuk
Copy link

igerasymchuk commented Oct 21, 2016

C# code
class Program
{
static void Main(string[] args)
{
if (args.Length > 0)
{
var fileName = args[0];
byte[] bytes = File.ReadAllBytes(fileName);
byte[] arrBytes = Encoding.UTF8.GetBytes(ASCII8ToString(bytes));
File.WriteAllBytes("foo.txt", arrBytes);
}
else Console.Write("File not found!");
}
static string ASCII8ToString(byte[] ASCIIData)
{
var e = Encoding.GetEncoding("437");
return e.GetString(ASCIIData);
}
}

@zaccharles
Copy link

@igerasymchuk it does have a solution and you're very close.

@igerasymchuk
Copy link

@zaccharles Finally I fix it (with a little help of my friend :) The new converter is ready to download https://dl.dropboxusercontent.com/u/933318/gistfix.exe

    static void Main(string[] args)
    {
        if (args.Length > 0)
        {
            var fileName = args[0];
            var content = File.ReadAllText(fileName);
            var encoding = Encoding.GetEncoding(437);
            var bytes = encoding.GetBytes(content);
            File.WriteAllBytes("repaired.zip", bytes);
        }
        else Console.Write("File not found!");
    }

@zaccharles
Copy link

Woohoo! It's correct :D :shipit:

@eXhausted
Copy link

@zaccharles @igerasymchuk try another archive :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment