totravel / minidocx

Fast and easy to use C++ library that creates or modifies Microsoft Word files without installing Word.
MIT License
94 stars 27 forks source link

Word found unreadable content #30

Open btam05 opened 5 months ago

btam05 commented 5 months ago

When trying to open a .docx file created by this library, Microsoft Word sends the following error message: "Word found unreadable content in a.docx. Do you want to recover the contents of this document? If you trust the source of this document, click Yes"

The .docx file is fine and no data is lost, but I was wondering if there was a way to open it without the error message popping up

totravel commented 5 months ago

All characters must be in UTF-8 encoding.

btam05 commented 5 months ago

I get the same error when trying to create a blank document. All my source files are in UTF-8 as well.