I'm having a problem storing certain UTF-8 characters in MySQL.
mb_internal_encoding("UTF-8");
$pdo = new \PDO('mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_USER, DB_USER_PASSWORD, array(PDO::ATTR_EMULATE_PREPARES => false, PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
$statement = $pdo->prepare("INSERT INTO test (value) VALUES (:value)");
$statement->execute(array(":value" => "");
This ends up with the being stored as "????". The column is set to utf8mb4_unicode_ci. Some other characters that don't work are and , whereas things like ☽,☯,❁,☼,(airplane that won't show up on stackoverflow), ▲, and ▽ do work. Any idea what's going on?