PHP piece of code like this:
trim(strtolower(utf8_encode($res->translation))) == trim(strtolower(utf8_encode($ph)))
returns false if, for example:$res->translation = "Bottines À Talons Hauts"
and $ph = "bottines à talons hauts"
. The problem should be in a weird À
letter, as other words match perfectly.
It needs to be mentioned that $res->translation
comes from MySQL and $ph
is a phrase from textarea in HTML page.
Any ideas?