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

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -