||
在index.php已经设置了$dbAdapter->query("SET NAMES 'utf8'");
数据库已经设置为utf8模式,可是为什么读取数据库的数据到模板中,为什么还是乱码,模板index.html中也已经设置<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
解答:
要配置参数的
试试在application/configs/application.ini中加入:
resources.db.params.charset = "utf8"