I set all character set as "utf8" in pages, I set all collation (also fields collation) as utf8_general_ci
in database, and I add this code in connect.php
mysql_set_charset('utf8',$connect);
mysql_query("SET NAMES 'utf8'");
Although everything is utf, when i run this query:
"SELECT * FROM titles WHERE title='toruń'"
Result: it returns "toruń
" and "torun
" which's are different words.
So what do you think?
What is the problem?
Thanks!
EDIT:
CREATE TABLE IF NOT EXISTS titles
(id
int(11) NOT NULL AUTO_INCREMENT,title
varchar(255) NOT NULL,
PRIMARY KEY (id
),
KEY title
(title
),
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=37 ;