Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Error when inserting UTF-8 string to sqlite3 db with db.insert "ProgrammingError: You must not use 8-bit bytestrings" #264
Awesome little python webapp foundation this.
Which is, as far as I can research, an error that shows when you try to insert an UTF-8 string into a sqlite3 db with the web db.insert() function - it puzzles me that no one have had this issue yet.
Now I've come across 2 solutions for this scenario:
I don't know if it will work with other sqlite drivers but it fixes the issue.
I found the fix in an unrelated thread at: