adm-zip icon indicating copy to clipboard operation
adm-zip copied to clipboard

Can not support multibyte direcotry file name when unzip

Open dpoi1973 opened this issue 7 years ago • 0 comments

please require('iconv-lite') in zipEntry.js; and then set EntryName(val) { var nameTemp = iconv.decode(val, 'GBK'); _entryName = Utils.toBuffer(val); var lastChar = _entryName[_entryName.length - 1]; _isDirectory = (lastChar === 47) || (lastChar === 92); _entryHeader.fileNameLength = _entryName.length; _entryName = nameTemp; }

dpoi1973 avatar Jul 11 '18 13:07 dpoi1973