I have a MySQL table that contains texts (nicknames) with Turkish characters in them. For example, there is a word "çığır" in Turkish. ( "cigir" with english characters ) It is stored in the database like "çığır". When I print this word in my .php page, it is printed correctly (as "çığır").
But when I do the query
SELECT * FROM users WHERE nickname LIKE 'çığır';
it returns an empty set. of course the other way (nickname like çığır) works, but I want do be able to do the first one, too. How can I do this?
p.s.: I have tried
SET NAMES 'UTF8';
SET character_set_connection = 'UTF8';
SET character_set_client = 'UTF8';
SET character_set_results = 'UTF8';
these don't work.
Thanks in advance!