UnicodeError

Oliver Vecernik vecernik at aon.at
Sat Apr 28 15:56:12 EDT 2001


Hi all,

I'm writing a program to export Access tables to SQL-DML. Everthing
works fine as long no special characters are used in table names. For
example a table named 'Währungen' causes an Error:

[...]
    df.write('DROP TABLE %s;\n' % daoDB.TableDefs(t).Name)
UnicodeError: ASCII encoding error: ordinal not in range(128)

Although my DBMS (PostgreSQL BTW) accepts 'Währungen' as table name I
don't know how to convert this name. Can anyone give me a clue or point
me to some docs?

Oliver



More information about the Python-list mailing list