MySQLdb

slukas slukas5 at poczta.onet.pl
Thu Jan 15 06:46:07 EST 2004


Hello
Sorry for my English.
I want add the new record to Mysql database. When I use my script I got 
an exception "UnicodeEncodeError: 'ascii' codec can't encode character 
u'\xe4' in position 12: ordinal not in range(128).
When I add line
sys.stdout = codecs.lookup('utf-8')[-1](sys.stdout)
to my script i see the var on the screen but I can't add var to database.

Any idea?
Thanks!
Lukas




More information about the Python-list mailing list