I have this unzipping function which is is using a .NET library (compression), but the problem is I am having some unicode problems in the file name for example "µ" is being converted to "æ"
is there a solution to this problem without using other unzipping libraries because I am limited to some licenses and found this one suite me the best
using System.IO.Compression;
private void Unzip()
{
try
{
string appPath = Path.GetDirectoryName(Application.ExecutablePath);
// unzip update
using (ZipArchive archive = System.IO.Compression.ZipFile.OpenRead(ZipFile))
{
foreach (ZipArchiveEntry entry in archive.Entries)
{
string fullPath = Path.Combine(appPath, entry.FullName);
if (String.IsNullOrEmpty(entry.Name))
{
Directory.CreateDirectory(fullPath);
}
else
{
if (!entry.Name.Equals("Updater.exe"))
{
entry.ExtractToFile(fullPath,true);
}
}
}
// UpdateProgress(((float)s.Position / (float)fileStream.Length) * 100F);
//System.Threading.Thread.Sleep(extraWaitMilliseconds); //don't go too fast
}
UnzipFinished(); //*********^
}
catch (Exception ex)
{
UnzipFailed(ex);
}
}