2 要素のタプルのリストを取得してテーブルに追加しようとしていSQLite
ます。
タプルの最初の要素は文字列 ( でエンコードunicode utf-8
) で、2 番目の要素はmurmurhash3 hash
そのutf-8
文字列の です。
これは違反行です: for result in
self.dbc.primaryCursor.executemany("insert into Table values(?,?);
select last_insert_rowid() as lastrowid;", ListOfTermsAndHashesTuples)
エラーはUnicodeDecodeError
次のとおりです。
'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128).
このエラーの原因は何ですか?