Re: [PyQt] Storing QString/Unicode in Sqlite Database

2011-11-15 Thread Tayfun Kayhan
16, 2011 12:42 AM Subject: Re: [PyQt] Storing QString/Unicode in Sqlite Database On Wednesday 09 November 2011, 10:29:55 Tayfun Kayhan wrote: > Thank you, the first one is working well. I tried setting API V2 but > it gave an error which says that it has been already set to V1. I'll

Re: [PyQt] Storing QString/Unicode in Sqlite Database

2011-11-15 Thread Hans-Peter Jansen
On Wednesday 09 November 2011, 10:29:55 Tayfun Kayhan wrote: > Thank you, the first one is working well. I tried setting API V2 but > it gave an error which says that it has been already set to V1. I'll > try fixing this, as well. Quoting http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/

Re: [PyQt] Storing QString/Unicode in Sqlite Database

2011-11-09 Thread Tayfun Kayhan
Sent: Wednesday, November 9, 2011 6:38 AM Subject: Re: [PyQt] Storing QString/Unicode in Sqlite Database Hi At first, you should probably use something like   unicode(some_lineEdit.text(), 'utf8'), if you want to convert string to unicode. At second, for me all unicode conversion problems di

Re: [PyQt] Storing QString/Unicode in Sqlite Database

2011-11-08 Thread Andrei Kopats
Hi At first, you should probably use something like unicode(some_lineEdit.text(), 'utf8'), if you want to convert string to unicode. At second, for me all unicode conversion problems disappeared after I started using QString API v2. In this case, PyQt methods always return you unicode instead of

[PyQt] Storing QString/Unicode in Sqlite Database

2011-11-08 Thread Tayfun Kayhan
Hi all, I wanna get texts from some QLineEdits' and QComboBoxes and store them in Sqlite DB. But I keep gettin the following error, i also tried using following commands that did not worked :  self.info = some_lineEdit.text() self.info = str(u"%s" % some_lineEdit.text())  self.info = some_lineEd