Forum


Replies: 1   Views: 3166
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

Hello,

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.