I have Japanese on my site coming from a mysql database.
Other Japanese text on the site displays fine, but the stuff coming out of the database looks like:
????????
The database is set to UTF8, so is the web page.
To fix the issue, before I make any calls to the database I use:
$db->query("SET NAMES utf8");
I was wondering if there was a better/easier way to do the above without having to set names before every query?