I have a PHP script which saves some data into a MySQL db using PDO.
On my Mac, I am using MAMP which is running PHP 7.1 and MySQL 5.6.35. On my VPS, I am using apache2 which is running PHP 7.0 and MySQL 5.7.
I imported the exact database sql file to my remote server as I have locally, however I am facing some problems with encoding.
Locally, everything gets saved nicely into the database. On my remote however, a lot of non-latin characters show up as random symbols. As mentioned above, the remote database uses the same encoding as the local database. I am guessing it is a problem on the PHP side.
EDIT: I am trying to save some Hungarian text if that helps.
Any ideas?
Thanks