How can I insert the tulip symbol () into the table column.
I am using PHP 5.3.x and using PDO for db operations, I tried setting various charsets like utf8, utf8mb4 but no use. When I use utf8 it said "Incorrect string value..." and while using utf8mb4 tulip symbol was replaced to "?".
I tried all these options PHP PDO: charset, set names?
$sql = new PDO(MySQL::DRIVER . ":host=host;dbname=db;charset=utf8",
MYSQL_USER,
MYSQL_PASSWORD,
array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); // or utf8mb44
$sql->exec("set names utf8"); // or utf8mb44
$sql->exec("SET CHARACTER SET utf8"); // or utf8mb44