ECSHOP2.7整合Discuz6.0时中文名登陆出错,英文名正常

2016-07-07 15:35 来源:www.chinab4c.com 作者:ecshop专家

整合后中文名登陆出错,英文名正常。错如如下所示.

MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT uid AS user_id, secques AS salt, password As password FROM `discuz`.`cdb_members` WHERE username='锟斤拷锟斤拷锟斤拷' ) [2] => Array ( [error] => Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' ) [3] => Array ( [errno] => 1267 ) )

ECSHOP2.7为UTF-8版,DZ6.0为GBK非latin1编码。

求解决方法。

回答:
路过 顶起
看不懂

uc的编码是否和ec的编码一致

不是UC,是DZ6.0
编码不同,EC是UTF-8,DZ是GBK

2个编码要一致哦

编码不一致不行的啊。