mysql - Greek chars in PHP -


i cannot receive data mysql server when run php query that:

$mysqli->query("utf8_general_ci"); // have tried "utf8" - didn't work $query =  "select * graf onoma 'ΓΕ%' "; $mysqli->query("set character set 'utf8_general_ci'"); $result = mysqli_query($mysqli,$query); if ($result !=0) {  while ($row = mysqli_fetch_assoc($result)) {       echo $row['onoma'];  }  } echo mysqli_error($mysqli); //gives no error echo mysqli_sqlstate($mysqli); //gives 00000 means statement correct 

can that? thank in advance,

try use following set php content-type:

header('content-type: text/html; charset=utf-8'); 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -