How to insert unicode characters into MySQL and retrieve them using CodeIgniter? Is there any settings to be done.
This is the query when I print it.
INSERT INTO `reviews` (`description`) VALUES ('😀')
But, it is saving as ????
.
Here is what I have done. CodeIgniter database.php
$db['default']['char_set'] = 'utf8mb4';
$db['default']['dbcollat'] = 'utf8mb4_unicode_ci';