Forum


Replies: 2   Views: 265
Encoding problems on heroku transforming html
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 aventyret  · 27-06-2024 - 09:07

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?