YII2頁(yè)面亂碼解決方法:
在數(shù)據(jù)庫(kù)配置中配置編碼格式就可以了:
<?php return [ 'class' =>?'yiidbConnection', ????'dsn'?=>?'mysql:host=127.0.0.1;?dbname=ohmycto;?charset=utf8', ????'username'?=>?'website', ????'password'?=>?'mengde1B', ];
推薦:yii使用教程
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載。
THE END