AttributeError: ‘NoneType’ object has no attribute ‘encoding’ python3连接mysql,字符编码使用出现问题 错误原因:与html中不同,Python3中charset之后应该使用 utf8