Python报错:ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can
2015-05-17 11:11
579 查看
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.
按照提示在打开数据库之后加一句
cx = sqlite3.connect("sys.db")
cx.text_factory = str
strings.
按照提示在打开数据库之后加一句
cx = sqlite3.connect("sys.db")
cx.text_factory = str
相关文章推荐
- Python sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings......
- Python:You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit byt
- 4000 Python报错:ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that ca
- 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
- [Python]sqlite3二进制文件存储问题(BLOB)(You must not use 8-bit bytestrings unless you use a text_factory...)
- [Python]sqlite3二进制文件存储问题(BLOB)(You must not use 8-bit bytestrings unless you use a text_factory...)
- SQLAlchemy解决ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory
- 解决python :“ProgrammingError: You must not use 8-bit bytestrings unless you...”
- Error “You must not call setTag() on a view Glide is targeting” when use Glide
- mysql:If 'mysql' is not a typo you can use command-not-found to lookup the package that contains
- Jenkins部署:The username you provided is not allowed to use the text-based Tomcat Manager (error 403)
- 错误Error “You must not call setTag() on a view Glide is targeting” when use Glide
- python csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
- checking host system type... configure: error: can not guess host type; you must specify one
- python读取csv文件是报错_csv.Error: iterator should return strings, not bytes (did you open the file in text
- The username you provided is not allowed to use the text-based Tomcat Manager (error 403)
- 错误 the type "xxxx" is defined in an assembly that is not refernced.You must add a reference to assem
- Kernel: Do NOT use global variable as possible as you can 尽量不使用全局变量
- Error: Can't find Python executable "python", you can set the PYTHON env variable.解决办法
- does not contain bitcode. You must rebuild it with