Skip to content

Commit

Permalink
Merge pull request #101 from andre0799/master
Browse files Browse the repository at this point in the history
added UTF-8 support on linux
  • Loading branch information
dbashford authored Nov 1, 2016
2 parents 078b365 + 7948605 commit 58a1d69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/extractors/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var exec = require( 'child_process' ).exec
function extractText( filePath, options, cb ) {
var escapedPath = filePath.replace( /\s/g, '\\ ' );

exec( 'antiword ' + escapedPath,
exec( 'antiword -m UTF-8.txt ' + escapedPath,
function( error, stdout /* , stderr */ ) {
var err;
if ( error ) {
Expand All @@ -33,7 +33,7 @@ function testForBinary( options, cb ) {
return;
}

exec( 'antiword ' + __filename,
exec( 'antiword -m UTF-8.txt ' + __filename,
function( error /* , stdout, stderr */ ) {
var msg;
if ( error !== null && error.message &&
Expand Down

0 comments on commit 58a1d69

Please sign in to comment.