DocxMerge icon indicating copy to clipboard operation
DocxMerge copied to clipboard

Error to open the file "Sorry ... we discovered a problem with his content"

Open silverhead opened this issue 10 years ago • 1 comments

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

silverhead avatar Sep 08 '15 10:09 silverhead

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');

jupitern avatar Oct 19 '15 12:10 jupitern