adm-zip
adm-zip copied to clipboard
Can't show filename normal
when the file name is Chinese ,it can't display properly
+1
Same issue on my side with utf-8 chars like é, à or ê ....
any hint on how to fix this issue?
@jocool No. I gave up.
Hi there,
I face the same issue with chars like é, à, etc...
Is there a fix on the way or a workaround to this problem ?
I've not found a solution yet ... no time to investigate ... if you find a solution please update the answer here ... i'll do the same
Same problem here, always showing ����
- same problem
should be done like this, take chinese encoding for example:
const AdmZip = require('adm-zip')
const iconv = require('iconv-lite')
const zip = new AdmZip('path/to/your/zip/file')
zip.getEntries().forEach(entry => {
entry.entryName = iconv.decode(entry.rawEntryName, 'gbk')
console.log(entry.entryName)
})
zip.extractAllTo('path/to/extract')