Archive

Posts Tagged ‘antiword read file unicode utf8’

shell_exec antiword read file Unicode UTF8 Vietnamese

Đọc file tiếng việt có dấu qua shell_exec gọi antiword

antiword read file unicode utf8

/**
* read antiword
*/
$filename = 'my_file.doc';
$content = shell_exec('/usr/bin/antiword -m UTF-8.txt -t '.$filename);
echo $content;

nhantam
Web Developer

Advertisements