In development I am using a MySQL database on windows with a schema where I set the charset to UTF-8 and the collation to default collation. As O/R-Mapper I am using Doctrine 2. When I am on my windows machine there is no encoding problem of any sort, but as I deployed the code / database to a productive server which runs on linux, an encoding problem popped up: When I take a look at the data inside the tables using MySQL-Workbench, it looks like this
On the other side, the application just works fine, as there is no encoding problem, but as I update the data using the MySQL-Workbench with some special characters (äöü ...), an encoding problem is then visible on the website.