Hello all
I have a vb mysql database and its collation is "latin_swedish_ci". (i have huge problem on searching greek chars)
I'm trying to create a php script to retrieve some data's from a specific table.
For example:
header('Content-type: text/html; charset=UTF-8');
$connection = mysql_connect('localhost', 'root', ''); mysql_select_db('database', $connection);
mysql_query("SET NAMES 'utf8'", $connection);
$query = 'SELECT title FROM thread WHERE threadid = 15';
$result = mysql_query($query, $connection);
$result = mysql_fetch_assoc($result);
print_r($result);
But i get code like this: Σκιάθος - ΚουκουναÏιÎ
In my phpmyadmin i get the same code. The english chars shows perfect.
From now, i want to retrieve some data's from the above tables on utf8.
Any idea?
Thank you!
(If i can retrieve the data's correctly, i will create a new table - mirror of the old table as utf8 and i hope my problem fixed that way)