try Column()'s parameters quote=.. and key=.., 
doc/docstrings.html#docstrings_sqlalchemy.schema_Column

and/or mapper's explicit column-naming:
doc/adv_datamapping.html#advdatamapping_properties_colname




On Sunday 25 March 2007 08:04:02 Chen Houwu wrote:
> from the sqlalchemy documentation,
> I found when table definition
> (e.g
>
> >>> users_table = Table('users', metadata,
>
> ...     Column('user_id', Integer, primary_key=True),
> ...     Column('user_name', String(40)),
> ...     Column('password', String(10))
> ... )
> )
>
> and a class
> (e.g.
>
> >>> class User(object):
>
> ...     pass
> )
>
> are mapped together,
> the column name in the column definition(e.g. 'password') are
> mapped into an attribute of the class,
> but python only accept ASCII attribute name.
> so,
> What if the above "password" is a word in Chinese GB2312 encoding?
>
> Does it mean I can't deal with column name which is not ASCII?
>
> -~----------~----~----~----~------~----~------~--~---



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to