DocxMerge
DocxMerge copied to clipboard
Error to open the file "Sorry ... we discovered a problem with his content"
Hi,
I have a problem when I want to open the docx merged. A message appears "Sorry ... because we discovered a problem with its contents" I can click on "OK", I have another message "Word found unreadable content ..." I click "Yes" and the file opens but when I close I must save it.
Can you help me ? Thank you
hi.
Are you using place holders to insert text? what encoding are you using? Try to do the following to every string you insert in the docx using the correct encoding:
htmlspecialchars($stringToReplace, ENT_XML1, 'UTF-8');