I have copied this script from [python web site][1] This is another question but now problem with encoding:
import sqlite3 import csv import codecs import cS
From the documentation:
Unlike the StringIO module, this module is not able to accept Unicode strings that cannot be encoded as plain ASCII strings.
I.e. only 7-bit clean strings can be stored.