RE: [PHP] html_entity_decode is trying to kill me

2012-02-17 Thread HallMarc Websites
> Ugh. The problem is that the EvalMath class doesn't death with comparisons > between numbers, it only performs calculations. Barking up the wrong tree > for 2 hours is fun on a Friday! > Sorry, I just noticed death; seems your fingers contracted deal with into death. Interersting... -- PHP

Re: [PHP] html_entity_decode is trying to kill me

2012-02-17 Thread Marc Guay
Ugh. The problem is that the EvalMath class doesn't death with comparisons between numbers, it only performs calculations. Barking up the wrong tree for 2 hours is fun on a Friday! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] html_entity_decode is trying to kill me

2012-02-17 Thread Marc Guay
It actually works for me as well if I run it in the browser. The structure of the app is a bit strange, though, so debugging character encoding issues is quite difficult. The code is being run by Code Igniter in the backend and the response passed via JSON to a ExtJS 4 frontend, so what I'm looki

Re: [PHP] html_entity_decode is trying to kill me

2012-02-17 Thread Matijn Woudt
On Fri, Feb 17, 2012 at 5:00 PM, Marc Guay 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 < 2"; > $rule = html_entity_decode($rule, ENT_QUOTES, 'UTF-8'); > echo $rule; > > And the r