Hi,
i was reflecting mssql tables with german umlauts in their
columnsnames and got an error, mapping these tables to classes:
....
File "c:\TTL\ttl\model\__init__.py", line 24, in init_model
orm.mapper(MLFB, t_mlfb)
File "c:\python25\lib\site-packages\sqlalchemy-0.4.4-py2.5.egg
\sqlalchemy\orm\
__init__.py", line 548, in mapper
return Mapper(class_, local_table, *args, **params)
File "c:\python25\lib\site-packages\sqlalchemy-0.4.4-py2.5.egg
\sqlalchemy\orm\
mapper.py", line 162, in __init__
self._compile_properties()
File "c:\python25\lib\site-packages\sqlalchemy-0.4.4-py2.5.egg
\sqlalchemy\orm\
mapper.py", line 601, in _compile_properties
self._compile_property(column_key, column, init=False,
setparent=True)
File "c:\python25\lib\site-packages\sqlalchemy-0.4.4-py2.5.egg
\sqlalchemy\orm\
mapper.py", line 669, in _compile_property
setattr(self.class_, key, Mapper._CompileOnAttr(self.class_, key))
File "c:\python25\lib\site-packages\sqlalchemy-0.4.4-py2.5.egg
\sqlalchemy\orm\
mapper.py", line 539, in __init__
self.existing_prop = getattr(class_, key, None)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in
position 6:
ordinal not in range(128)
Is there a way to tell orm.mapper() to encode the columnnames into
iso-8859-1 rather than ascii?
Thanks in advance,
Tobias
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---