utf8和unicode在mysql中获取警告消息
我有一张mysql表。当我尝试插入时,我得到以下结果: 警告:字符串值不正确:'\xAE您可以尝试以下操作-utf8和unicode在mysql中获取警告消息,mysql,unicode,utf-8,Mysql,Unicode,Utf 8,我有一张mysql表。当我尝试插入时,我得到以下结果: 警告:字符串值不正确:'\xAE您可以尝试以下操作- 在将字符串输入数据库之前,请检查字符串的编码,这可能是在utf8中需要的 您更新每个表列以接受utf8 你能举一个导致警告的insert语句的例子吗? mysql> show create table Configurations; | Configurations | CREATE TABLE `Configurations` ( `id` int(11) NOT NULL
utf8
中需要的utf8
你能举一个导致警告的insert语句的例子吗?
mysql> show create table Configurations;
| Configurations | CREATE TABLE `Configurations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`ckey` varchar(255) NOT NULL,
`value` mediumtext,
PRIMARY KEY (`id`),
KEY `ckey` (`ckey`),
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8 |
mysql> SHOW VARIABLES LIKE 'coll%';
+----------------------+-----------------+
| Variable_name | Value |
+----------------------+-----------------+
| collation_connection | utf8_general_ci |
| collation_database | utf8_general_ci |
| collation_server | utf8_general_ci |
+----------------------+-----------------+