Closed
Description
Describe the Bug
*.doc (MsDoc) cyrillic symbols reading is not working correctly
Steps to Reproduce
1.Create MsDoc(*.doc) file with cyrillic symbols
2.Run this code
<?
require __DIR__ . '/vendor/autoload.php';
$phpDoc = \PhpOffice\PhpWord\IOFactory::load("FileName.doc", 'MsDoc');
$body = "";
foreach ($phpDoc->getSections() as $sections) {
foreach ($sections->getElements() as $el) {
if($el instanceof PhpOffice\PhpWord\Element\Text){//
$body .= $el->getText();
}
}
}
echo($body);
Expected Behavior
Normal text
Current Behavior
Context
- PHP Version: 5.6
- PHPWord Version: 0.17.0