I'm trying to retrieve a string from MySQL that contains japanese characters. I'm using
$handle = new PDO("mysql:dbname=" . DATABASE . ";host=" . SERVER . ";charset=utf8", USERNAME, PASSWORD);
to connect to the database, and i can store the string just fine, using the same method to connect. It shows up like this
But when i retrieve it using the same method to print it to a web page it'll just show ? instead of the characters. Like this http://puu.sh/bd1fX.png. The characters after "Name" are hardcoded here for testing purposes.
Here's the function i'm using to connect and retrieve data http://pastebin.com/7jj7MLjd
If anyone has any suggestions as to why i can't get the characters back from the databse, that'd be great.