- Home /
437 error preventing me from unzipping files. PC version.
I used a script to unzip my files. It does not work when having built the project. The error is
NotSupportedException: Encoding 437 data could not be found. Make sure you have correct international codeset assembly installed and enabled.
Any help getting this to work, would be highly appreciated.
using UnityEngine;
using System.Collections;
using System;
using System.Runtime.InteropServices;
using Ionic.Zip;
using System.Text;
using System.IO;
public class ZipUtil
{
public static void Unzip (string zipFilePath, string location)
{
Directory.CreateDirectory (location);
ReadOptions ops = new ReadOptions();
ops.Encoding = Encoding.UTF8;
using (ZipFile zip = ZipFile.Read (zipFilePath,ops)) {
zip.ExtractAll (location, ExtractExistingFileAction.OverwriteSilently);
}
}
}
I found this:
https://github.com/adamhathcock/sharpcompress/issues/405
gblikas commented on 7 $$anonymous$$ar 2019
I am not sure if this is the correct fix, but I was seeing the same problem while trying to use Ionic.Zip.dll. $$anonymous$$y solution was to copy the I18N.*.dll's into the Assets folder. This solved it for Android and iOS. For some reason, it seems like Unity doesn't include some essential code page support in its $$anonymous$$obile build pipeline.
And this:
https://answers.unity.com/questions/1720968/encoding-437-data-could-not-be-found-while-unzippi.html
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Illuminating a 3D object's edges OnMouseOver (script in c#)? 1 Answer
how to open Executables from encrypted .ZIPs 1 Answer
Flip over an object (smooth transition) 3 Answers