Php 在Codeigniter上显示UTF8字符

Php 在Codeigniter上显示UTF8字符,php,codeigniter,codeigniter-2,Php,Codeigniter,Codeigniter 2,Config.php $config['charset'] = 'UTF8'; database.php $db['default']['char_set'] = 'utf8'; $db['default']['dbcollat'] = 'utf8_general_ci'; html标题 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 我的数据库有utf8\u general\u c

Config.php

$config['charset'] = 'UTF8';
database.php

$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
html标题

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

我的数据库有utf8\u general\u ci的排序规则,我的所有文件都是用utf8编码的,尽管我无法在页面上显示我的unicode字符

这总是显示
वि.सं. 你需要确保到处都有utf8,比如 在config.php中

$config['charset'] = "UTF-8"; //not UTF8
php.ini中的

default_charset = "utf-8"
用于数据库

DEFAULT CHARSET=utf8;

您需要确保到处都有utf8,比如 在config.php中

$config['charset'] = "UTF-8"; //not UTF8
php.ini中的

default_charset = "utf-8"
用于数据库

DEFAULT CHARSET=utf8;

在php.ini中是否启用UTF-8?另外,如果我没有弄错的话,$config['charset']应该设置为'UTF-8'而不是'UTF8'。您在HTML页面中设置了字符集吗<代码>在php.ini中是否启用UTF-8?另外,如果我没有弄错的话,$config['charset']应该设置为'UTF-8'而不是'UTF8'。您在HTML页面中设置了字符集吗<代码>非常感谢您,先生。。。尼泊尔文:阿耶拉最后一次紧张局势(巴科·蒂约…:)呵呵,很高兴知道它对你有用。。。是的,是的。。简单的cha,但很容易跳过huncha dimaag baata.)@Sld G'tam英语非常感谢您,先生。。。尼泊尔文:阿耶拉最后一次紧张局势(巴科·蒂约…:)呵呵,很高兴知道它对你有用。。。是的,是的。。简单的cha,但很容易跳过huncha dimaag baata.)@请用Sld G'tam英语