- Home /
Android Build Gives Encoding 437 Error When Interacting With ZIP Files
Hello, I'm working on a Unity application that targets Android. The application itself will periodically need to download a .zip file from our remote server since the content of our app is dynamic. The .zip file downloads fine, but I'm running into an issue where trying to interact with the .zip file is throwing an encoding 437 error.
More specifically, when I start the process of looking through the entries of the .zip file, I get an encoding 437 error. The function that triggers this error is ZipInputStream.getNextEntry();
The exact error that it throws is the following: NotSupportedException: Encoding 437 data could not be found. Make sure you have correct international codeset assembly installed and enabled.
A slightly more detailed stack trace of the error can be found in the following image:
We're using Unity 2019.2.17f1 and the tablets we target have a minimum Android version of 5.1.1 (this software has been around a little while). Our dynamic content update process has worked in the past, it seems to only recently have stopped working (perhaps after upgrading our editor to Unity 2019?). So, we figure it's easier to try and figure out this encoding error than completely changing our entire update process to something like asset bundles.
I've seen only a couple of other issues with the 437 encoding error relating to Android+Unity out there, but they seem to either have no conclusive answer, or someone claiming an answer but it's something very nebulous or just not relevant to our project.
So, is there some kind of place in Unity where encoding settings can be tweaked? Sounds like this type of encoding just needs to be included in our build, but I'm having trouble finding that info.