Please see this previous answer for how to configure PHP to handle UTF-8. If it still doesn't work, anywhere that you expect UTF-8 output from your database, use
htmlentities($foobar, ENT_QUOTES, 'UTF-8');
The last parameter is optional if you are running PHP >= 5.4.0, but I always include it for backwards compatibility.