sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
SQLiteでUTF-8を用いたい場合はtext_factoryにstrを指定して解決しました。
import sqlite3 db = sqlite3.connect(":memory:") db.text_factory = str
0 件のコメント:
コメントを投稿