mattconnolly / ZipArchive

zip archive processing for Cocoa - iPhone and OS X
http://code.google.com/p/ziparchive/
MIT License
840 stars 260 forks source link

getZipFileContents does not produce the same filenames as UnzipFileTo:overWrite: #57

Closed depinette closed 9 years ago

depinette commented 9 years ago

When filenames in the zip file contain non ASCII characters (e.g. ö) , getZipFileContents does not give the same filename as those created by unzipFileTo. It seems to be caused by the following line: NSString * strPath = [NSString stringWithCString:filename encoding:NSASCIIStringEncoding];

I think it should be: NSString * strPath = [NSString stringWithCString:filename encoding:self.stringEncoding];

mattconnolly commented 9 years ago

Well spotted.