Changing the following line stops the German text from displaying incorrectly too:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Is there a function I need to add during the SQL query or when I display the text with PHP?
This is my simple HTML page before execution:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head>
<body><?
include("inc/database.inc");
$db = new Database("localhost", "test", "root", "root");
// u can use Database("host", "database", "user", password"
$sql = "SELECT * FROM character_set";
$db->query($sql);
echo $db->printSQL();
$db->restartResults();
while($db->getRecord())
{
$chinese = html_entity_decode($db->getField("chinese"),ENT_QUOTES,"BIG5");
echo "$chinese<br>"; // displays ??
echo $db->getField("chinese") . "<br>"; // displays ??
echo $db->getField("standard") . " " . $chinese . " " . $db->getField("german") . "<br>";
}
?>
</body>
</html>[/COLOR]
Thanks