- 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);
}
}
}
Answer by WeirdBeardDev · Sep 04, 2020 at 07:13 PM
I haven't tested this but it sounds like a similar problem as this -> https://answers.unity.com/questions/42955/codepage-1252-not-supported-works-in-editor-but-no.html.
It sounds like you need to make sure you have the correct DLL as part of the PC version build. Once you find the DLL add it to your project similar to this comment, http://answers.unity.com/answers/1157954/view.html and see if that fixes your problem.
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