http://www.111cn.net/database/mysql/56096.htmhtml
show variables like "%char%";mysql
show variables like "%coll%";sql
而后将数据库中全部编码方式改成统一:数据库
代码以下 | 复制代码 |
Query OK, 0 rows affected (0.00 sec)spa
mysql> set collation_database= utf8_general_ci.net |
从新查看字符集及数据表字段编码字符是否一致:code
总结htm
utf8_bin
utf8_general_ci
utf8_unicode_cici
utf8_bin 与 utf8_general_ci 能够
utf8_bin 与 utf8_unicode_ci 能够
utf8_general_ci 与 utf8_unicode_ci 不能够