On 10/18/07, Christoph Zwerschke <[EMAIL PROTECTED]> wrote:
>
> Lukasz Szybalski wrote:
> > Should I convert the data to unicode before I sent it to the template?
>
> Sorry, I forgot you mentioned the text was coming from the database. In
> this case, the model would have been more interesting than the
> controller code. It looks like you're using SQLAlchemy. Did you declare
> your table columns as Unicode?
I am auto leading the structure from the database.
bind_meta_data()
XXXname_table = sqlalchemy.Table('XXX', metadata, autoload=True)
class XXX(object):
pass
XXXtablename_mapper=assign_mapper(session.context,XXX,XXXname_table)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---