I built a website on my personal server and everything work fine. But when I uploaded it on the production server there is a problem with the database - the character encoding is wrong so the text is unreadable (users submit greek words).
The collation of the tables is utf8_general_ci and I've included the meta charset="utf-8" on all the pages. I've tried including header('Content-type: text/html; charset=UTF-8'); or SET NAMES UTF-8 but they didn't do anything.
What did I do wrong? Thanks for your time.