php - Greek letters in MySQL don't saved properly -
i try save greek letter in mysql php characters saved this: "μαÏτίοÏ"
on html page have se meta charset on "utf8" , have create db in mysql "....character set utf8 collate utf8_unicode_ci". please find below php db connetction code:
<?php $con=mysqli_connect("localhost","user","password","customers" ); if (mysqli_connect_errno()) { echo "failed connect mysql: " . mysqli_connect_error(); mysql_query('set character set utf8'); mysql_query("set names 'utf8'"); }
any idea might wrong?
Comments
Post a Comment