unicode error

Allerdyce.John at gmail.com Allerdyce.John at gmail.com
Fri Mar 17 19:01:39 CET 2006


I have this python code:
print >> htmlFile, "<div id=\"track" + unicode(1) + "\"
style=\"width: 200px; height:18px;\">";


But that caues this error, and I can't figure it out why. Any help is
appreicate
 File "./run.py", line 193, in ?
    print >> htmlFile, "<div id=\"track" + unicode(1) + "\"
style=\"width: 200px; height:18px;\">";
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 9:
ordinal not in range(128)

Thanks.




More information about the Python-list mailing list