yii2中文乱码

2020-08-24 08:42:43

在数据库配置中进行如下配置即可:

推荐学习:yii框架

<?phpreturn [    'class' => 'yiidbConnection',    'dsn' => 'mysql:host=127.0.0.1; dbname=ohmycto; charset=utf8',    'username' => 'website',    'password' => 'mengde1B',];

更多编程相关内容学习,请访问php中文网编程教程栏目!

相关文章 大家在看