Hi all.
Have a UTF-8 Database.
The data in PhpMyAdmin looks fine.
Where I query the database from PHP, I do no get back proper unicode.
The Website header has charset=utf-8, no problem.
When I hard code some Unicode text, it appears fine on the site.
1
The DB connection is the same all over the site:
function ConnectDB()
{
$db = “ABC”;
$link = mysql_connect(“MNO.your-server.de”, “ABC”, “Password”);
mysql_set_charset(‘utf8’,$link);
mysql_select_db($db) or die(mysql_error());
}
2
The table causing the garbled text is UTF-8
ENGINE=MyISAM AUTO_INCREMENT=68 DEFAULT CHARSET=utf8