Convert Hex code to character

Hello everyone,

I have an annoying issue that’s driving me nuts. I’m using a CMS. I enter  . It looks like it converts this   to the 0xA0 code. I’m not 100% sure on this, but I’m guessing because if I do a vardump, it gives me ‘string(2) " "’ and when I view source the space is a  .

Now, I’m trying to check if it is this value… only I can’t seem to do it.

I’ve tried comparing it to 0xA0, " ", and all other crazy combinations involving dechex, hexdec, etc.

Any ideas?

0xA0 is  

Ah… finally figured it out.

Used bin2hex and it gave me “c2a0”… looks like it slipped in a funky character on me. Now I can just compare against that.

Yeah, I know. =p

Problem was PHP had it in binary, but I couldn’t figure that out and I knew I couldn’t compare it to a string.