If you want to use 8-bit strings instead of unicode string in sqlite3, set appropriate text_factory for sqlite connection:
connection = sqlite3.connect(...)
connection.text_factory = str
More Related Contents:
- SQLite, python, unicode, and non-utf data
- What exactly do “u” and “r” string flags do, and what are raw string literals?
- How to remove \xa0 from string in Python?
- How to get string objects instead of Unicode from JSON?
- Why does Python print unicode characters when the default encoding is ASCII?
- Parameter substitution for a SQLite “IN” clause
- Get a list of all the encodings Python can encode to
- Non-ASCII characters in Matplotlib
- OperationalError: database is locked
- What is the difference between encode/decode?
- urllib2 read to Unicode
- ‘UCS-2’ codec can’t encode characters in position 1050-1050
- Sqlite3, OperationalError: unable to open database file
- Why doesn’t Python recognize my utf-8 encoded source file?
- How to read datetime back from sqlite as a datetime instead of string in Python?
- How to make Django slugify work properly with Unicode strings?
- Python 3: How to specify stdin encoding
- Python decompressing gzip chunk-by-chunk
- Identifier normalization: Why is the micro sign converted into the Greek letter mu?
- Passing a column name in a SELECT statement in Python
- Bulk insert huge data into SQLite using Python
- How do I treat an ASCII string as unicode and unescape the escaped characters in it in python?
- Python unicode regular expression matching failing with some unicode characters -bug or mistake?
- Is there a way to get a list of column names in sqlite?
- sqlite3.OperationalError: unable to open database file
- How do I get str.translate to work with Unicode strings?
- Convert “\x” escaped string into readable string in python
- How to encode Python 3 string using \u escape code?
- Convert JSON to SQLite in Python – How to map json keys to database columns properly?
- Python 3 chokes on CP-1252/ANSI reading