I am in the process of fixing some bad UTF-8 encoding. I am currently using PHP 5 and MySQL.
In my database I have a few instances of bad encodings that print like: î
- The database collation is utf8_general_ci
- PHP is using a proper UTF-8 header
- Notepad++ is set to use UTF-8 without BOM
- database management is handled in phpMyAdmin
- not all cases of accented characters are broken
I need some sort of function that will help me map the instances of î, ÃÂ, ü and others like it to their proper accented UTF-8 characters.