S
slukas
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
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