I created a table with the following sql:
CREATE TABLE fens_mng_people_utf8 (
pidm varchar(16) NOT NULL default '',
fname varchar(32) NOT NULL default '',
mname varchar(32) default NULL,
lname varchar(32) NOT NULL default '',
KEY pidm (pidm)
)CHARACTER SET utf8
DEFAULT CHARACTER SET utf8
COLLATE utf8_general_ci
DEFAULT COLLATE utf8_general_ci;
And some Turkish characters such as Ş appears as a html code Ş
even if I insert it directly with an sql not from a text document. And I am viewing it from phpmyadmin.
As a result, when I try to do such operations in my php:
SELECT * FROM fens_mng_people_utf8 WHERE fname = '$fname' and lname = '$lname'
It returns null because $fname
and $lname
both displays Turkish characters properly.
I either want to correctly display Turkish characters in my table or convert $fname
as it would match the value in my database.
Thanks for the help!