[pysqlite] [APSW] Reading non-UTF8 data?
Fred <[email protected]> Thu, 04 Dec 2008 12:02:02 +0100
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Apparently, I'm getting an error when trying to read data through a SELECT that is encoded in ISO-8859-1 while Python expects UTF8: ===== sql = 'SELECT code,label FROM mytable' rows=list(cursor.execute(sql)) #UnicodeDecodeError: 'utf8' codec can't decode bytes in position 12-14: invalid d ===== Is there a way to tell APSW to use a different code page to read data? Thank you.