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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -