[Tutor] unicode issue?

Matt Dempsey mizzousundevil at gmail.com
Wed Mar 22 00:05:09 CET 2006


I'm having a new problem with my House vote script. It's returning the
following error:

Traceback (most recent call last):
  File "C:/Python24/evenmorevotes", line 20, in -toplevel-
    f.write
(nm+'*'+pt+'*'+vt+'*'+md['vote-result'][0]+'*'+md['vote-desc'][0]+'*'+'\n')
UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in
position 172: ordinal not in range(128)

Here's the code: http://pastebin.com/615240

What am I doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060321/7922ccbb/attachment.html 


More information about the Tutor mailing list