I try to save some Greek letter in MySQL with PHP but the characters are saved like this: "μαÏτίοÏ"
On my HTML page i have se meta charset on "utf8" and also I have create the db in MySQL like this "....CHARACTER SET utf8 COLLATE utf8_unicode_ci". Please find below my php db connetction code:
<?php
$con=mysqli_connect("localhost","user","password","customers" );
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
mysql_query('set character set UTF8');
mysql_query("SET NAMES 'utf8'");
}
Any idea what might be wrong?