Re: html_entity_decode is trying to kill me

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 17, 2012 at 5:00 PM, Marc Guay <marc.guay@xxxxxxxxx> wrote:
> 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 &lt; 2";
> $rule = html_entity_decode($rule, ENT_QUOTES, 'UTF-8');
> echo $rule;
>
> And the result is still "1 &lt; 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
>

This piece of code is working perfectly fine on my Ubuntu PHP 5.3.6.
(I get 1 < 2 ). Can you post some information about your system, eg
PHP version, Apache version, Operating System, OS language?

- Matijn

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux