Hi,

I don't know what I'm doing wrong here.
I''m using Python 2.4 and py2exe. I get he following error:

Traceback (most recent call last):
  File "notegui.pyc", line 34, in OnClose
  File "brain.pyc", line 61, in setNote
  File "points.pyc", line 151, in setNote
  File "point.pyc", line 100, in writeNote
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in
position 99: ordinal not in range(128)


The piece of code involved is:

      noteFileObj = open(noteFile, "wb")
      noteFileObj.write(note)
      noteFileObj.close()


I would've thought that the 'b' option meant I can write any binary
code I like to the file,
but that's not so?

Thanks for any tips,
Martin.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to