Suggest UTF-8 when decoding local files, (workaround) fixes #9

main
gardenapple 2 years ago
parent 08dcd7e273
commit b108b74fa4
No known key found for this signature in database
GPG Key ID: CAF17E9ABE789268

@ -369,7 +369,9 @@ if (inputIsFromStdin) {
});
} else if (inputFile) {
promiseGetHTML = jsdom.JSDOM.fromFile(inputFile, {
url: documentURL
url: documentURL,
// workaround for https://gitlab.com/gardenappl/readability-cli/-/issues/9
contentType: "text/html; charset=utf-8"
});
}

Loading…
Cancel
Save