PHP: Problems comparing data from a DB with data from http request
I'm trying to compare data that's coming from a DB with data from one http request.
When I use plain old ascii data, I have no problem comparing both, however, when I try to use the string "Universidad Pedagógica Nacional", I can't tell when there's a match between the two. Just to see what was going on, I tried to compare the rawurlencode of both strings, and then I noticed that both string are not exacly equal. See what both values would be:
See? The first is from the http request, the second came from the DB. Any ideas how I can avoid it?
Thanks in advance.