I have a simple mysql query:
$query = addslashes($_REQUEST['query']);
$sql = mysql_query ("SELECT * FROM countries WHERE name LIKE '%{$query}%'");
It works with any $query unless it has a special character in it.
Let's say i'm looking for "Åland Islands" or "Côte d'Ivoire", it will not retrieve anything.
I also tried without the addslashes but it just doesn't change anything.
Thank you for your help.
EDIT
This is my variables setup in Mysql:
character_set_client | utf8
character_set_connection | utf8
character_set_database | utf8
character_set_filesystem | binary
character_set_results | utf8
character_set_server | latin1
character_set_system | utf8
The character set server is something I can't change. It seems to be set by my hosting. Any attempt to change this gives me a message telling me that I don't have the super permissions that will allow me to do that.