When I use embedHTML it works great locally. But when deploying to Heroku the characters come out weird. We're using the same php version on both (8.1.11)
$docx->embedHTML('<p>åäö testing chars ÅÄÖ</p>');
This works fine locally, but on Heroku it comes out åäö testing chars Ã…ÄÖ
Also the document is damaged and need to be repaired when downloading it.
Unfortunalty Heroku doesn't allow ext-tidy. So I have added
'forceNotTidy' => true
But since I'm adding well formatted hard coded html this should be fine I'm guessing. Also it's working locally without Tidy.
Any ideas what this could be?