Well the problem is that I didn't write the code. I tried to use a ready made PHP CMS. MySQL is indeed set to UTF-8, but I think that I have to set the collation too in the connection (is that correct ...