web浏览器中的日语字符编码问题

ufj5ltwl  于 2021-06-25  发布在  Mysql
关注(0)|答案(1)|浏览(352)

当我在mysql中查询时,它返回日语字符。图片附在下面。

但在浏览器中显示“???”。图片附在下面。

在这里我附上我的base.html代码。

<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link media="screen" href="<?php echo $this->path_to('/common/css/import.css') ?>" type="text/css" rel="stylesheet" />

<script src="<?php echo $this->path_to('/common/js/jquery-2.1.0.min.js') ?>"></script>
<title><?php echo $this->v('page_title') ?></title>
</head>
<body>
<?php echo $this->part_of('body') ?>
</body>
</html>
v09wglhw

v09wglhw1#

使用 mysqli_set_charset($db,'utf8'); 在dbconnection文件中。在我的例子中,$db是我的连接变量

相关问题