汉语言插入msql插入不了

中文插入msql插入不了mysql中是utf-8python中连接数据库中是 ,charsetutf8sql.encode(utf8)这样也不

中文插入msql插入不了
mysql中是utf-8
python中连接数据库中是 ,charset='utf8'
sql.encode("utf8")这样也不行 python 数据库 mysql
[解决办法]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 38: ordinal not in range(128)

表示汉字已经是utf-8编码的了