So stellen Sie UTF8 unter PHP ein, wenn Sie eine Verbindung zu ACCESS 2007 (ODBC) herstellen
Ich habe Thai, Japan, Korea Zeichen (3 Felder) in Access-Datei.
Ich habe ein Skript in PHP erstellt, um eine Verbindung zu dieser Datei herzustellen
aber Zeichen auf dem Display wird angezeigt ??????? ??????? und ??????
Was ist zu SETZEN, um den normalen Charakter anzuzeigen?
Das ist mein Drehbuch
<html>
<head>
<title>TEST</title>
</head>
<body>
<?
$objConnect = odbc_connect("test","","") or die("Error Connect to Database");
$strSQL = "SELECT * FROM table1";
$objExec = odbc_exec($objConnect, $strSQL) or die ("Error Execute [".$strSQL."]");
?>
<table width="600" border="1">
<tr>
<th width="20"> <div align="center">ID </div></th>
<th width="30"> <div align="center">Thai </div></th>
<th width="30"> <div align="center">Korea </div></th>
<th width="30"> <div align="center">Japan </div></th>
</tr>
<?
while($objResult = odbc_fetch_array($objExec))
{
?>
<tr>
<td><?=$objResult["ID"];?></div></td>
<td><?=$objResult["Thai"];?></td>
<td><?=$objResult["Korea"];?></td>
<td><?=$objResult["Japan"];?></div></td>
</tr>
<?
}
?>
</table>
<?
odbc_close($objConnect);
?>
</body>
</html>