Message363522
csv.DictReader does not work with encodings. It works with already decoded strings.
You have to specify the correct encoding in open() (and "t" in mode is ignored):
with open(filename, "r", encoding="utf-8") as csvfile:
By default open() uses locale encoding. It is likely 'cp1252' on American and Western European Windows. |
|
Date |
User |
Action |
Args |
2020-03-06 15:14:24 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, sparan |
2020-03-06 15:14:24 | serhiy.storchaka | set | messageid: <1583507664.03.0.569910962639.issue39876@roundup.psfhosted.org> |
2020-03-06 15:14:24 | serhiy.storchaka | link | issue39876 messages |
2020-03-06 15:14:23 | serhiy.storchaka | create | |
|