一、mysql字符编码设置为utf8,可是会发生某些字符存不进去,保存error 1366错误。发现mysql中的utf8通常存储2字节到3字节。4个字节的没法存储。须要将字符编码设置为utf8mb4.html
更改数据的设置以下:mysql
https://mathiasbynens.be/notes/mysql-utf8mb4#character-sets sql
mysql的字符集设置:编码
http://www.laruence.com/2008/01/05/12.html htm