I had previously encoded MySQL data in latin1. Now, I've converted it to UTF-8 in MySQL but the data is still saved in latin1. UTF-8 data that was originally stored as Latin-1 has not converted correctly to UTF-8. I need a work around in PHP, so that when I get data from the database using a query, it should be converted into UTF-8.
I found a solution to convert the database using a MySQL function, which is really helpful... MySQL - Convert latin1 characters on a UTF8 table into UTF8
But my scenario is, I need to do this in PHP.