title: PHP charset conversion
body: <p>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.</p>
  
  <p>I found a solution to convert the database using a MySQL function, which is really helpful...
  <a href="https://stackoverflow.com/questions/9407834/mysql-convert-latin1-characters-on-a-utf8-table-into-utf8">MySQL - Convert latin1 characters on a UTF8 table into UTF8</a></p>
  
  <p>But my scenario is, I need to do this in PHP.</p>