Skip to content

Error if document has unicode characters #1

@e2045

Description

@e2045

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions