I have inherited a web system that I need to develop further. It seems that the system was created by someone who read two chapters of a PHP tutorial and thought he could write code ...
So ... the web page itself is in UTF8 and displays and enters everything into it. Database tables were created with the UTF8 character set. But in the config there is "SET NAMES LATIN1". In other words, UTF8 encoded strings are populated in the database using forced Latin encoding.
Is there a way to convert this mess to my own repository in utf8 and get rid of latin1?
I tried this , but since the database table is set to utf8, this does not work. Also tried this one without success.
Perhaps I was able to do this by reading all the tables in PHP encoded with latin1 and then writing them back to the new database in utf8, but I want to avoid this if possible.
source share