Hi,
i got a question using the ZipLibrary.
We got a .zip file with about 20 files zipped.
Some of the filenames contains german umlauts like ä,ö,ü ....
Now, when using the ziplibrary the filenames which got german umlauts are incorrect.
Here is the function to get the files.
Any hint's ?
thank you
i got a question using the ZipLibrary.
We got a .zip file with about 20 files zipped.
Some of the filenames contains german umlauts like ä,ö,ü ....
Now, when using the ziplibrary the filenames which got german umlauts are incorrect.
Here is the function to get the files.
Dim fname As String = System.IO.Path.Combine(System.Configuration.ConfigurationManager.AppSettings("GlobalUploadPath"), Filename)
Dim fs As New FileStream(fname, FileMode.Open, FileAccess.Read)
Try
Using package = ZipPackage.Open(fs)
Dim allEntries As List(Of ZipPackageEntry) = package.ZipPackageEntries
For Each entry As ZipPackageEntry In allEntries
Dim filename As String = System.IO.Path.GetFileNameWithoutExtension(entry.FileNameInZip.ToLower)
-->> wrong filenames in entry.FileNameInZip
If tableList.Contains(filename) Then
' Reading the Data
End If
Next
End Using
Any hint's ?
thank you