From: Max I. <ma...@uc...> - 2004-11-30 13:48:20
|
Oleg Broytmann wrote: >>IIRC, native db drivers handle >>unicode input without problems. > > What is "unicode input"? Parameters that are passed in as a unicode string (u'bla-bla-bla') >>>In any case you cannot store unicode directly in the db >>>- you must convert it to a db encoding. >> >>Most modern dbs and python drivers handle this problem transparently. At >>least, that's my experience. > Can you show an example? Using a snippet of code, with a DB API > driver... Guess not. ;-) Just checked with psycopg -- it does requre a parameter to be encoded into something like utf-8. Either my memory make me a disservice or this psycopg is somehow broken. ;-) |