On Mon, Jan 30, 2006 at 11:40:55AM +0700, Stuart Bishop wrote:
> Oleg Broytmann wrote:
> >    Do cls.selectBy(that_unicode_col=u'some string'.encode(dbEncoding))
> 
> We handle this quite simply by encoding the entire query before sending it
> to the database

   How do you handle different encoding?

class Koiruski(SQLObject):
   unixway = UnicodeCol(dbEncoding="koi8-r")

class Windows(SQLObject):
   mustDie = UnicodeCol(dbEncoding="cp1251")

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to