為什么會(huì)UnicodeEncodeError: 'charmap' codec can't encode character '\u7701' in posit?
補(bǔ)個(gè)坑: 使用mysql按照視頻代碼出現(xiàn)了編碼錯(cuò)誤問(wèn)題 UnicodeEncodeError: 'charmap' codec can't encode character '\u7701' in posit 不要懷疑,不是你代碼寫錯(cuò)了。 解決方法: engine = create_engine(SQLALCHEMY_DATABASE_URL, encoding='utf-8', echo=True)=》 engine = create_engine('mysql://user:password@127.0.0.1:3306/cll?charset=utf8', echo=True)
2021-03-26
太厲害了你
2021-03-26