4000 Python报错:ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that ca
2016-12-02 10:37
399 查看
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
按照提示在打开数据库之后加一句
cx = sqlite3.connect(“sys.db”)
cx.text_factory = str
相关文章推荐
- Python报错:ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can
- 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
- 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...)
- SQLAlchemy解决ProgrammingError: 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...)
- 解决python :“ProgrammingError: You must not use 8-bit bytestrings unless you...”
- 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
- 错误Error “You must not call setTag() on a view Glide is targeting” when use Glide
- Jenkins部署:The username you provided is not allowed to use the text-based Tomcat Manager (error 403)
- ERROR: Could not extract package's data directory. Are you sure that your installed application is d
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- "Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.".
- Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextE
- iOS--错误集锦--'...' does not contain bit code. You must rebuild it with bit code enabled ...
- *** does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE
- does not contain bitcode. You must rebuild it with
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use