After upgrading to PHP 5.5, html_entities is returning blank for some strings. Specifically, it seems to be strings that contain French characters. I have tried setting it to UTF-8 but still blank:
htmlentities($str,ENT_COMPAT, 'UTF-8');
Anybody know what's going on here?
My code was working without issue on PHP 5.3.3.
Thanks for any help.
EDIT: Example string from comment
"<h1>Obtenez de meilleurs résultats en moins de temps. Garanti.</h1>"
Obtenez de meilleurs résultats en moins de temps. Garanti.
" – Andrew Dec 21 '15 at 17:17