Problem with utf8 when inserting to DB

I set in my database everything to utf8. If I insert string via phpmyadmin, everything is ok. Also when I get data from DB.

The problem is when I insert with php new data because mysql_query(“INSERT INTO tableName (fieldName) VALUES (‘ččč’)”); inserts ččč and not ččč.

I set header to UTF8 and everything else works ok. Has anybody any idea what could couse this problem?

No problem :wink:

tnx, this solved my problem!

Have you ran mysql_set_charset?