Replies: 1   Views: 1892
Problem with embedhtml
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 iliozzz  · 12-05-2016 - 12:57


I've got problem with embedHTML. 
After executing this line of code:

$docx->embedHTML('<h2>Привет</h2>'); <--Cyryllic word

getting wrong encoding in docx file, but if Im using

$docx->addText('Привет'); <-- Same word

everything is fine.
encode_to_UTF8 parameter set as true.

As you can see, I can't even parse Cyryllic words in here.
Thanks for any assistance.


Posted by admin  · 12-05-2016 - 13:22


Please check that Tidy is installed and enabled on your server. What license and version of phpdocx are you using?