html_entity_decode is trying to kill me
| From: | Marc Guay | Date: | Fri, 17 Feb 2012 16:00:32 +0000 |
| Subject: | html_entity_decode is trying to kill me | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-316703@lists.php.net to get a copy of this message | ||
Hi,
So I decided to give one of those PHP math classes a go and have come
across a joyful character encoding problem. He's the deal:
$rule = "1 < 2";
$rule = html_entity_decode($rule, ENT_QUOTES, 'UTF-8');
echo $rule;
And the result is still "1 < 2". I've tried different combinations
of character encodings and quotings, to no avail. Any ideas of where
I should look for the culprit?
Marc