Python insert UTF8 string into SQLite Python insert UTF8 string into SQLite sqlite sqlite

Python insert UTF8 string into SQLite


Do what it tells you to do and use unicode values instead:

titulo_unicode = titulo.decode('utf8')

The sqlite3 library will take care of encoding this correctly when inserting, decoding again when selecting.