Re: [SQLObject] Unicode w/ sqlobject

2009-06-28 Thread Oleg Broytmann
On Sun, Jun 28, 2009 at 02:31:53PM -0400, Markos Kapes wrote: > Just assumed using the sqlmeta fromDatabase=True formatted columns right > (they are typed as utf-8 in the database). > Why doesn't this work, I wonder? Because nobody has implemented that feature. Wanna work on it? > UnicodeCol

Re: [SQLObject] Unicode w/ sqlobject

2009-06-28 Thread Markos Kapes
Just assumed using the sqlmeta fromDatabase=True formatted columns right (they are typed as utf-8 in the database). Why doesn't this work, I wonder? Should I file it as a bug? UnicodeCol works, but the one column is going to be a mighty big text chunk sometimes. Will sqlobject truncate ev

Re: [SQLObject] Unicode w/ sqlobject

2009-06-28 Thread Imri Goldberg
This might be a stupid question, but you didn't include the full source of PrimaryDef, so I have to ask. How did you define the column? If you set a StringCol instead of a UnicodeCol, that might explain it. Also, noe that your second example, "PrimaryDef(lemma=u"λήμμα῾῾).encode("utf-8")" does

[SQLObject] Unicode w/ sqlobject

2009-06-27 Thread Markos Kapes
OK, so I have a simple object: class PrimaryDef(SQLObject): _connection=sqlobject.connectionForURI("mysql:// infoshopkee...@localhost/lexiko? use_unicode=1&charset=utf8&sqlobject_encoding=utf-8") class sqlmeta: fromDatabase=True If I try to add an ascii record, it works. If I t