I am using python 2.7.6 and sqlite3. Here the part of code which must create the table named goods:
c.execute("""create table goods(
Art varchar(12) primary key,
Name_G varchar(30),
Meas varchar(3),
Price_G double unsigned,
check (Meas in ('кг.','л.','шт.')))""")
Don't blame me for such method, it's the exercise requirement. THe field Meas can contain only one of three strings. They are listed in constraint and they are in Russian. This query executes succesfully but if I check the data in database I see it stores the following SQL:
CREATE TABLE goods(
Art varchar(12) primary key,
Name_G varchar(30),
Meas varchar(3),
Price_G double unsigned,
check (Meas in ('кг.','л.','шт.')))
As you can see, it's not Russian. Is there any method to store correct data in the database? encode() method, u'' didn't work for me.