When I echo some Turkish characters like:
echo "ÇŞİĞÖÜ, çşıüğö";
There is no problem:
http://i.hizliresim.com/kj9kov.png
But when I encode this string in a JSON array, and put the encoded string in mysql db, it shows like:
{"otherComments":"u00c7u015eu0130u011eu00d6u00dc, u00e7u015fu0131u00fcu011fu00f6"}
and when I do not encode it in a JSON array, it just shows "?" instead of Turkish characters.
I already have this code in my php file:
header('Content-Type: text/html; charset=utf8');
I have no idea what else to do.
This is the code in my dbconnect file:
mysql_query("SET NAMES 'utf8'", $this->con);
mysql_query("SET CHARACTER SET utf8", $this->con);
mysql_query("SET COLLATION_COLLECTION='utf8_turkish_ci'", $this->con);
mysql_select_db("mehmeta3_team6", $this->con);
The settings for the selected schema:
http://i.hizliresim.com/gkrAZN.png
The settings for the table and the column:
http://i.hizliresim.com/YvQlrE.png