-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Bug ReportMS-DOC (Word 97)Status: Waiting for feedbackQuestion has been asked, waiting for response from PR authorQuestion has been asked, waiting for response from PR author
Milestone
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
Metadata
Metadata
Assignees
Labels
Bug ReportMS-DOC (Word 97)Status: Waiting for feedbackQuestion has been asked, waiting for response from PR authorQuestion has been asked, waiting for response from PR author