I'm trying to compare some text to the text in a database. In the database any text with an accent is encoded like in HTML (i.e. é
) when I compare the database text to my string it doesn't match because my string just shows é. When I use the PHP function htmlentities to encode the string first the é turns into ?? weird? Using htmlspecialchars doesn't encode the é at all.
How would you suggest I compare é to é
as well as all the other accented characters?