I'm having a serious issue here and I don't know how to fix it.
I narrowed it down quite a bit and it comes to the following:
I have a html entitity (using a space between & and uuml; as I can't get it display properly ):
& uuml; => ü
And I wanna write that to the document, the following options I tried (and failed)
$docx->addText(html_enties_decode('& uuml;'); // fails
$docx->addText(utf8_encode('& uuml;'); // fails
When however I do the folllowing:
echo utf8_encode('& uuml;');
// Copy & paste the result from my browser into the following code:
What is going on, what am I doing wrong?