I’m working with strings in PHP and the character ‘a’ in binary looks like this: 01100001. What I want to do is reverse this, which then becomes 10000110 and convert back to its text representation, but everytime I try it either gives me a ? or a blank square indicating a non-printable or invalid character. I tried online ASCII/UNICODE binary
Tag: non-ascii-characters
preg_match with international characters and accents
I would like to validate a string with a pattern that can only contain letters (including letters with accents). Here is the code I use and it always returns “nok”. I don’t know what I am doing wrong, …
Replacing accented characters php
I am trying to replace accented characters with the normal replacements. Below is what I am currently doing. $string = “Éric Cantona”; $strict = strtolower($string); echo “After Lower: “….