Replies: 5   Views: 4313
Html and utf-8
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 honzakuchar  · 11-04-2013 - 12:13

No, it activates utf8_encode function = Encodes an ISO-8859-1 string to UTF-8 (source: PHP documentation). And I have UTF-8 encoded string on input.

So problem in other words is:
->addText() accepts UTF-8 strings
->addHtml() accepts Windows-1250 encoded HTML (default in IE)