Hi everyone,
Can someone please tell me how come my unicode is getting replaced by question marks? In my database I have three unicode first names, and one name "John". As you can see, my encoding is correct as the first two chinese characters print correctly (well they do on my display). Here is the output (the code is displayed below):
TEST - 河南
First Name: ??
First Name: ???
First Name: ??
First Name: John
CODE IS AS FOLLOWS:
$db = getcwd().'\..\..\testdb.mdb';
$conn = new COM('ADODB.Connection');
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=$db");
$query = "SELECT firstname FROM Trainers";
$result = $conn->execute($query);
print("TEST - 河南"."<BR><BR>");
while (!$result->EOF) {
print("First Name: ".$result->Fields["firstname"]->value."<BR>");
$result->MoveNext();
}
Thanks very much in advance,
Matthew