Unzipping using c# with ExtractToDirectory and special symbols in file names in archive

44 Views Asked by At

Hello.

I have an archive with 1 file only with next name: Pva=Pokus@#&τƒ².docx .But when i extract this file via c# code i.e. this method ZipFile.ExtractToDirectory(sourceArchiveFileName, destinationDirectory, encoding); i always get in output directory file with incorrect name. I tried all of encoding, but it does not working. I found that topick Unzipping with ExtractToDirectory method distorts non-latin symbols but there is no naswer. TotalCommander and windows 11 unpacking it with properly names, but my code does not. What to do? Any suggestions and help will be awesome. Many Thanks

0

There are 0 best solutions below