I moved data from MySQL 4 (they were originally set to latin2 encoding) to MySQL 5 and set encoding to utf-8. It
latin2 encoding
utf-8
Here is a fix. Set the header to header ('Content-type: text/html; charset=utf-8'); Then print your content using utf8_decode($content). You must have the two to make it work.
header ('Content-type: text/html; charset=utf-8');
utf8_decode($content)