Merge pull request #8 from rcriii42/uft-typo

Fix typo uft8 to utf8
This commit is contained in:
Erik 2021-03-01 10:31:43 -08:00 committed by GitHub
commit 861d8db761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ def csv_write(icsfile):
wr = csv.writer(myfile, quoting=csv.QUOTE_ALL) wr = csv.writer(myfile, quoting=csv.QUOTE_ALL)
wr.writerow(headers) wr.writerow(headers)
for event in sortedevents: for event in sortedevents:
values = (event.summary.encode('utf8').decode(), event.uid, event.description.encode('uft8').decode(), event.location, event.start, event.end, event.url) values = (event.summary.encode('utf8').decode(), event.uid, event.description.encode('utf8').decode(), event.location, event.start, event.end, event.url)
wr.writerow(values) wr.writerow(values)
print("Wrote to ", csvfile, "\n") print("Wrote to ", csvfile, "\n")
except IOError: except IOError: