Re: [firebird-python] different encoding for varchar and blob

2012-04-30 Thread Peter Irbizon
hello, thank a lot. but when I use: import kinterbasdb kinterbasdb.init(type_conv=300) self.con = kinterbasdb.connect(dsn=os.path.join(module_path(), folder, db), user=usr, password=psw) self.cur = self.con.cursor() select... self.con.close() I am getting ProgrammingError: Cannot initialize modul

Re: [firebird-python] different encoding for varchar and blob

2012-04-18 Thread Pavel Cisar
Hi, Dne 18.4.2012 22:58, Peter Irbizon napsal(a): > > I have table with >USER VARCHAR(100) CHARACTER SET WIN1250, >NOTE BLOB SUB_TYPE 1 CHARACTER SET WIN1250, > But when I pick up data from this table with kinterbasdb in python 2.7 > (# -*- coding: utf-8 -*-) VARCHAR field is ok but BLOB f

[firebird-python] different encoding for varchar and blob

2012-04-18 Thread Peter Irbizon
Hello guys, I have table with USER VARCHAR(100) CHARACTER SET WIN1250, NOTE BLOB SUB_TYPE 1 CHARACTER SET WIN1250, But when I pick up data from this table with kinterbasdb in python 2.7 (# -*- coding: utf-8 -*-) VARCHAR field is ok but BLOB field seems to be "corrupted" and I must decode it w