I have checked that Mysql Database,Table, and Column Collation is set to utf8_general_ci
.
The mysqli connection is set the utf8
Here is the code:
private function __construct () {
if(! $this->mysqli = new mysqli('localhost', 'root', '', 'game') ) {
$this->errors = $this->mysqli->connect_error;
mysqli_set_charset($this->mysqli, "utf8");
}
}
But when I insert some arabic characters then it's showing me this: Ø
Its should be arabic character. How can I solve it?