yii2页面乱码解决方法

yii2页面乱码解决方法

YII2页面乱码解决方法:

数据库配置中配置编码格式就可以了:

<?php return [     &#39;class&#39; => 'yiidbConnection',     'dsn' =&gt; 'mysql:host=127.0.0.1; dbname=ohmycto; charset=utf8',     'username' =&gt; 'website',     'password' =&gt; 'mengde1B', ];

推荐:yii使用教程

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享