swxben / docx-template-engine

A template engine for the .NET platform which takes a DOCX file and applies a data object to generate reports, do mail merges, etc.
35 stars 17 forks source link

UTF encoding issue #6

Closed becdetat closed 11 years ago

becdetat commented 11 years ago

Characters like em dash or smart quotes are causing errors in the resultant document, relating to the encoding of the word/document.xml file that is updated in the DOCX archive.

At the moment this is handled by replacing the characters but there should be a way of fixing the encoding of the file so that it isn't malformed.