Problem mit der Kodierung beim Schreiben in sqlite3
📁 Python, Fehler, Python 2 (veraltet), KI
Ich schreibe unter Windows 7 mit python 2.7.10.
#-*-coding: utf-8 -*-conn = db.connect('main.db')#conn.text_factory = strc = conn.cursor()c.execute('PRAGMA encoding=""UTF-8"";')c.execute('''CREATE TABLE IF NOT EXISTS user (login text, password text) ''')c.execute('''CREATE TABLE IF NOT EXISTS service (useame text, service_name text, service_login text, service_pwd text)''')print u""Willkommen im Passwort-Manager""print u""Nur Buchstaben des lateinischen Alphabets und Ziffern sind erlaubt""name = raw_input(u""Stellen Sie sich vor: ""