utf8mb4 和 utf8 比较 utf8mb4: A UTF-8 encoding of the Unicode character set using one to four bytes per character. utf8mb3: A UTF-8 encoding of the Unicode character set using one to three bytes per character. UTF-8是使用1~4个字节,一种变长的编码…
MySQL编码导致的插入报错(UTF8MB3和UTFMB4的区别)
开发中遇到一个奇怪的问题:尝试向 MySQL 数据库插入一个“𫖯”字时,居然报错了!深入排查后发现,罪魁祸首竟然是 MySQL 的编码问题——utf8 和…