sqlalchemy and Unicode strings: errormessage

Daniel Kluev dan.kluev at gmail.com
Tue May 31 07:32:25 EDT 2011


On Tue, May 31, 2011 at 8:40 AM, Wolfgang Meiners
<WolfgangMeiners01 at web.de> wrote:
> metadata = MetaData('sqlite://')
> a_table = Table('tf_lehrer', metadata,
>    Column('id', Integer, primary_key=True),
>    Column('Kuerzel', Text),
>    Column('Name', Text))

Use UnicodeText instead of Text.

> A_record = A_class('BUM', 'Bäumer')

If this is python2.x, use u'Bäumer' instead.


-- 
With best regards,
Daniel Kluev



More information about the Python-list mailing list