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.
これはなに? 大樹のUbuntu備忘録: pythonのSQLiteでUTF-8を使う
con = sqlite3.connect('temp.db', isolation_level=None) con.text_factory = str
.text_factory = str をするとOKだった。
- 作者: Mark Lutz,夏目大
- 出版社/メーカー: オライリージャパン
- 発売日: 2009/02/26
- メディア: 大型本
- 購入: 12人 クリック: 423回
- この商品を含むブログ (127件) を見る