On Fri, Apr 20, 2012 at 08:43:33AM -0700, Mike wrote: > Thanks very much guys. Next app I plan on using SQLAlchemy for my first > time. > > Marius, would it be better to decode to utf8 during __setattr__() vs > __getattribute__()?
Neither?
I can't answer without knowing what your code is all about.
The general rule is: encode/decode at your application boundaries.
Pyramid already converts your HTTP form data into Unicode. You need
to do the same at the points where you're talking to the database.
What database is it?
Marius Gedminas
--
Vi has excellent support for the PC speaker. Nearly every key combination will
invoke the PC speaker to make use of this.
-- G_Morgan on reddit
signature.asc
Description: Digital signature
