thejoshwolfe/yauzl

support Info-ZIP Unicode Path Extra Field (0x7075)

f111fei opened this issue · 4 comments

Download: https://github.com/f111fei/test-files/raw/master/yauzl-test-chinese.zip
Run: node index.js
Get Output:

c:\Users\xzper\Desktop\yauzl-test-chinese>node index.js
Current FileName: ╞▀╕÷╖┐╝Σ.txt

The correct name is 七个房间.txt

duplicate of #19

But There are some solutions to get correct names?

I've determined that this issue is caused by yauzl not recognizing an optional extension to the spec where a zipfile creator can specify the filename in two places and one of them says to ignore the other. This is the first I've seen a zipfile creator use this feature, so I haven't thought to support it until now.

This seems like a useful extension to support.

Your issue is fixed on master. However, I'd like to write some more tests before releasing this feature to npm.

published to npm as version 2.6.0. please let me know if you have any other issues.