Forum


Replies: 8   Views: 3800
Utf-8 issues
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 Squad internet  · 11-04-2013 - 12:13

Hi (again)

I figured out what the problem was ;)
I leftout a single header before sending, it seems that that has been the problem.

I forgot:
[code]
header('Content-Transfer-Encoding: binary');
[/code]

So all together, you'll need:

header('Content-type: application/vnd.openxmlformats-officedocument.wordprocessingml.document');
header('Content-Disposition: attachment; filename="report.docx"');
header('Content-Transfer-Encoding: binary');

Problem solved.