OK, I'm still not seeing my last reply, so I hope this isn't a double
post.
You got me on the right track (I think). My system's preferred
encoding is actually latin1.
I tried to convert all the values to unicode using just:
item = unicode(item)
That didn't make any difference at all. I then tried:a
item = unicode(item.decode(locale.getpreferredencoding()))
Now that seems to have gotten me farther. Now, while in Windows I
still get the same error opening the file, at least now I can actually
_see_ the buggy worksheet. Now, if only I could get rid of it, maybe
I'll be all set:
| print wb.get_sheet_names()
| for sheet in wb.get_sheet_names():
| if sheet != ws.title:
| try:
| wb.remove_sheet(sheet)
| except:
| print "Warning: failed to delete buggy worksheet '%s'."%sheet
| pass
['Sheet', 'currentDeals']
Warning: failed to delete buggy worksheet 'Sheet'.
Rats! Is there a better way to remove that first sheet with bad
random data in it? Or am I on the wrong track entirely?