First time here? Check out the FAQ!

Revision history  [back]

This has something to do with the default encoding that is set in your environments (which explains why it might work when run via other methods)

hmm, looks like you're using Python 3 (at least through Wing).  I'd bet that

with open(csv_filename, encoding='utf-8') as csv_fd:

would work (assuming the file is encoded as utf-8)

This has something to do with the default encoding that is set in your environments (which explains why it might work when run via other methods)

hmm, methods)hmm, looks like you're using Python 3 (at least through Wing).  I'd bet that

with thatwith open(csv_filename, encoding='utf-8') as csv_fd:

would csv_fd:would work (assuming the file is encoded as utf-8)