I am using DOMDocument to manipulate / modify HTML before it gets output to the page. This is only a html fragment, not a complete page. My initial problem was that all fren
Don't use utf8_decode. If your text is in UTF-8, pass it as such.
Unfortunately, DOMDocument defaults to LATIN1 in case of HTML. It seems the behavior is this
Example of it working:
Sans doute parce qu’il vient d’atteindre une date déterminante
dans son spectaculaire cheminement