-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Hello,
my document has unicode characters. But this error occured.
Error: Command failed: "c:\Users\myUser\Tool\node_modules\msoconvert\bin\docto.exe" --word --inputfile "C:\Users\myUser\test.doc" --outputfile "C:\Users\myUser\test.txt" --format wdFormatText msoEncodingUTF8
at ChildProcess.exithandler (child_process.js:308:12) at ChildProcess.emit (events.js:315:20) at maybeClose (internal/child_process.js:1048:16) at Socket.<anonymous> (internal/child_process.js:439:11) at Socket.emit (events.js:315:20) at Pipe.<anonymous> (net.js:673:12) {killed: false,
code: 200,
signal: null,
cmd: '"c:\Users\myUser\Tool\node_modules\msoconvert\bin\docto.exe" --word --inputfile "C:\Users\myUser\test.doc" --outputfile "C:\Users\myUser\test.txt" --format wdFormatText msoEncodingUTF8'
}
Here is my code.
const convert = require("msoconvert");
convert({
use: 'WD',
input: inputFileDoc,
output: outputFileTXT,
format: 'wdFormatText',
options: 'msoEncodingUTF8',
})
.then(() => console.log("done"))
.catch((error) => {
console.log(error)
});
Could you help me to handle this issue?
Thank you in advance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels