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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -