'latin-1' codec can't encode character '\u014d' mysql
爬取到的数据中含有特殊字符,存入数据库时出错。sql
connection = pymysql.connect( host = '1.1.1.1',#主机名 user = 'xxx',#用户名 password = 'xxx',#密码 db = 'test',#数据库 use_unicode = True, charset = 'utf8'#数据库字符集 )