We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, when trying to read a .doc file with central european characters (file example here srncik.zip ) the reader messes up all the diacritics
$type_word_reader = IOFactory::createReader('MsDoc'); $text = ""; $word = $type_word_reader->load($working_file_path); foreach($word->getSections() as $section){ $els = $section->getElements(); foreach ($els as $el) { $class = get_class($el); if (method_exists($class, 'getText')) { //i have tried everything, nothing works // \PhpOffice\PhpWord\Shared\Text::toUTF8($el->getText()); // \ForceUTF8\Encoding; Encoding::fixUTF8($el->getText())); $text .= $el->getText()."\n"; } else { $text .= "\n"; } } } file_put_contents('test.log', $text);
not mess up the characters
messing up the characters
Please fill in your environment information:
The text was updated successfully, but these errors were encountered:
@verybigelephants
This issue has been fixed by a maintainer in the PR #2664. You can help him by sponsoring him through Github sponsors.
Sorry, something went wrong.
Progi1984
Successfully merging a pull request may close this issue.
Describe the Bug
Hello, when trying to read a .doc file with central european characters (file example here srncik.zip ) the reader messes up all the diacritics
Steps to Reproduce
Expected Behavior
not mess up the characters
Current Behavior
messing up the characters
Context
Please fill in your environment information:
The text was updated successfully, but these errors were encountered: