Re: [SQLObject] UnicodeCol (was: Is there a way to configure kinterbasdb (Firebird)?)
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2009-09-16 15:05:34
|
On Wed, Sep 16, 2009 at 04:59:00PM +0200, Frank Wagner wrote: > NAME = StringCol(length=40, dbName="NAME") > > def _get_NAME(self): > return self._SO_get_NAME() and unicode(self._SO_get_NAME(), > 'iso-8859-1').strip() or u'' Frank, why don't you use UnicodeCol? NAME = UnicodeCol(length=40, dbName="NAME", dbEncoding='iso-8859-1') Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |