I have a problem to get data from the sqlite3 database. I can't find out the names of tables and their encoding. When I open DB through sqlitebrowser names were just unreadable characters. Connection to DB is fine.
conn = sqlite3.connect('my.db')
conn_cursor = conn.cursor()
conn.text_factory = str
But how can I get the names of tables and their encoding?
header = open('my.db').read(100); import struct; encoding_type = struct.unpack('>i', header[56:60])[0]. Theencoding_typeis equal to either 1, 2, or 3 and corresponds to UTF-8, UTF-16LE, or UTF-16BE respectively.encodingpragma instead.