I have a strange space character in that somehow got inserted into my database. I would like to know what this possibly unicode character is but I’m running into some problems. For example:
I have the string ” ” where the seemingly ordinary space is the mystery character”. I then want to get it’s ord() value. If I do echo ord(' '); I get 194 which is not correct. I know that it is some kind of unicode character because if I do echo strlen(' '); I get 2 back.
I need to know this characters unicode value so I can do a MYSQL query to get rid of it once and for all in my DB. Any help is greatly appreciated.
According to the php docs, ord() returns the ASCII-value of a character. If you know your character is not ASCII, this function is not what you’re looking for. I would try to echo the character (make sure you use UTF-8 as charset for the connection), copy it and paste it to http://unicodelookup.com/ to see what this character is about.