【发布时间】:2013-11-02 21:45:58
【问题描述】:
core.php
$con=mysqli_connect("localhost","root","","mmogezgini");
header('Content-Type: text/html; charset=utf-8');
gamelisti.php
$result = mysqli_query($con,"SELECT * FROM games");
while($row = mysqli_fetch_array($result))
{
?>
HTML CODES
<?php echo $row['game_name']; ?>
HTML CODES
<?php }
mysqli_close($con);
?>
我使用像“ö,ç,ğ,ı”这样的土耳其字符,我在数据库中正确地看到了这些字符,但是当我从数据库中选择它们并使用 php echo 显示时,它们看起来像问号=(?) 我对数据库 utf8_general_ci 的编码
【问题讨论】: