I am migrating my site to php mysqli from php methods mysql_ *.
I had the following code that completed the task:
mysql_query ("SET NAMES 'utf8' COLLATE 'utf8_unicode_ci'");
Without this request, my string characters (in Georgian) were written with question marks. For example, it was written ????????? instead of გამარჯობა
Since he did his work, I was happy, but now I can not do the same with mysqli.
$mysqli = new mysqli("localhost", "root", "", "test"); $mysqli->query("SET NAMES 'utf8' COLLATE 'utf8_unicode_ci'");
Can anyone help me out? Thanks.
Davit source share