Forum


Replies: 1   Views: 3611
German umlaut
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by cstolze  · 13-01-2015 - 15:08

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

Posted by admin  · 13-01-2015 - 15:14

Hello, Are you using an UTF8 editor/IDE? Please send to contact[at]phpdocx.com your script and template, a script we can run standalone, to check it. Regards.