You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a nested XML file with a directory structure like: examples > xml_files > default.xml . My default.xml file has a single line within it.
My unzipping code looks like this:
(ts)
const unzip = new Unzip(stringToByteArray(data));
for (const fileName of unzip.getFilenames() || []) {
if (!isDir(fileName)) {
const content = unzip.decompress(fileName);
const filename = this.utf16ToUtf8(fileName);
console.log(filename, content);
}}
Running this code on the zip mentioned above will work for all files except for the single line default.xml file. If I add an additional line to default.xml, it will parse correctly. Diving into the source codes leaves me to believe that the offset is being calculated incorrectly. Am I missing something?
The text was updated successfully, but these errors were encountered:
I have a nested XML file with a directory structure like: examples > xml_files > default.xml . My default.xml file has a single line within it.
My unzipping code looks like this:
(ts)
Running this code on the zip mentioned above will work for all files except for the single line default.xml file. If I add an additional line to default.xml, it will parse correctly. Diving into the source codes leaves me to believe that the offset is being calculated incorrectly. Am I missing something?
The text was updated successfully, but these errors were encountered: