Replies: 1   Views: 2454
Problem with encoding of docx document
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 05-07-2017 - 14:20


phpdocx supports all charsets as MS Word does. We have tested your code and all characters appear fine when opening the DOCX.

If the strings are already UTF-8 you don't need to encode them again using setEncodeUTF8 (or you'll get a wrong string). Please check that the extension mbstring ( is installed and enabled and try again. Also check that the font family you are using supports that character.

If you still have the issue after installing mbstring, please send to contact[at] the most simple script and the output DOCX that illustrates the issue and we'll run it and send back the DOCX generated on our servers.