I'm trying to customize the footer of a Word document, like this
$default = new WordFragment($docx, 'defaultFooter');
$default->addText($patient_data['patientName']);
$docx->addFooter(array('FOOTERPATIENTNAME' => $default));
The 'patientName' are german, and we have special char inside. When we call this method the docx: is not created, or it created without replacing the name.
if the patientName has not special char, it works!
There's a solution on how insert the german umlaut char? (in the rest of the document I use the replaceVariableByHTML where the var to replace has a str_replace('germanChar', 'htmlCharCode, $string), but this method not works on the footer.
Any solution?
thanks.
p.s.: there's no change if set the utf with setEncodeUTF8