skip to Main Content

Unzip not handling utf-8 in Node Alpine Docker image: how to set correct locale?

With this zip file, this Node script successfully outputs the files: const child_process = require('child_process') const util = require('util') const exec = util.promisify(child_process.exec) exec(`unzip -Z1 metamorpR.zip`).then(zip_contents => { if (zip_contents.stderr) { throw new Error(`unzip error: ${zip_contents.stderr}`) } console.log(zip_contents.stdout) }) metamorpR.z5…

VIEW QUESTION
Back To Top
Search