Building loop with some exceptions?

Gilles Ganault nospam at nospam.com
Tue Nov 4 17:09:29 EST 2008


On Tue, 4 Nov 2008 12:10:28 -0800 (PST), Matimus <mccredie at gmail.com>
wrote:
>I would just do something like this (not tested):

Thanks a lot guys :-) Worked first time.

I just have the usual issue with ASCII/Unicode:

=======
    cursor.execute(sql)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position
53: ordinal
 not in range(128)
=======

Is there a way to get rid of this error once and for all?

Thank you.



More information about the Python-list mailing list