关于Django报 1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='"的错误解决办法
该错误原因是数据库编码设置不符导致。
解决办法:
修改具体表, 字段的编码, 如下图:
![](https://img.haomeiwen.com/i795688/0197e1cd0ee34c71.png)
![](https://img.haomeiwen.com/i795688/401fd137878e6cc4.png)
参考:http://stackoverflow.com/questions/31130841/error-number-1267-illegal-mix-of-collations-latin1-swedish-ci-implicit-and-u
http://stackoverflow.com/questions/2150256/how-to-change-all-the-tables-in-my-database-to-utf8-character-set/2150335#2150335
网友评论